Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 256080
Collapse All | Expand All

(-)xdebug-2.0.5.ebuild.old (-2 / +27 lines)
Lines 18-24 Link Here
18
SRC_URI="http://pecl.php.net/get/${PN}-${MY_PV}.tgz"
18
SRC_URI="http://pecl.php.net/get/${PN}-${MY_PV}.tgz"
19
LICENSE="Xdebug"
19
LICENSE="Xdebug"
20
SLOT="0"
20
SLOT="0"
21
IUSE=""
21
IUSE="defaulton"
22
22
23
S="${WORKDIR}/${PN}-${MY_PV}"
23
S="${WORKDIR}/${PN}-${MY_PV}"
24
24
Lines 41-47 Link Here
41
	php-ext-base-r1_addtoinifiles "xdebug.collect_params" '"0"'
41
	php-ext-base-r1_addtoinifiles "xdebug.collect_params" '"0"'
42
	php-ext-base-r1_addtoinifiles "xdebug.collect_return" '"0"'
42
	php-ext-base-r1_addtoinifiles "xdebug.collect_return" '"0"'
43
	php-ext-base-r1_addtoinifiles "xdebug.collect_vars" '"0"'
43
	php-ext-base-r1_addtoinifiles "xdebug.collect_vars" '"0"'
44
	php-ext-base-r1_addtoinifiles "xdebug.default_enable" '"0"'
44
	if use defaulton ; then
45
		php-ext-base-r1_addtoinifiles "xdebug.default_enable" '"1"'
46
	else
47
		php-ext-base-r1_addtoinifiles "xdebug.default_enable" '"0"'
48
	fi
45
	php-ext-base-r1_addtoinifiles "xdebug.extended_info" '"1"'
49
	php-ext-base-r1_addtoinifiles "xdebug.extended_info" '"1"'
46
	php-ext-base-r1_addtoinifiles "xdebug.manual_url" '"http://www.php.net"'
50
	php-ext-base-r1_addtoinifiles "xdebug.manual_url" '"http://www.php.net"'
47
	php-ext-base-r1_addtoinifiles "xdebug.max_nesting_level" '"100"'
51
	php-ext-base-r1_addtoinifiles "xdebug.max_nesting_level" '"100"'
Lines 77-79 Link Here
77
	php-ext-base-r1_addtoinifiles "xdebug.var_display_max_depth" '"2"'
81
	php-ext-base-r1_addtoinifiles "xdebug.var_display_max_depth" '"2"'
78
	php-ext-base-r1_addtoinifiles "xdebug.var_display_max_children" '"128"'
82
	php-ext-base-r1_addtoinifiles "xdebug.var_display_max_children" '"128"'
79
}
83
}
84
85
pkg_postinst() {
86
	if ! use defaulton ; then
87
		ewarn "Deviating from Xdebug's default setting xdebug.default_enable is set"
88
		ewarn "to 0 if not emerged with defaulton USE flag. This is done to prevent"
89
		ewarn "Xdebug to become globally enabled if emerged accidentally as a"
90
		ewarn "dependency."
91
		ewarn " "
92
		ewarn "You will have to activate it manually by setting xdebug.default_enable"
93
		ewarn "to 1 in php.ini, adding a php_admin_value directive to your vhost or by"
94
		ewarn "calling xdebug_enable() in your code."
95
		ewarn " "
96
		ewarn "If you really intend to activate Xdebug globally you can also reemerge"
97
		ewarn "with USE flag 'defaulton'."
98
		ewarn " "
99
		ewarn "Disabling Xdebug by default has been introduced in ebuild 2.0.5."
100
	else
101
		ewarn "Xdebug is globally enabled by default - unset USE flag defaulton to"
102
		ewarn "prevent this behavior."
103
	fi
104
}

Return to bug 256080