The ini entry was being corrupted because it wasn't being set
on the ACTIVATE and DEACTIVATE stages.
This commit is contained in:
Rasmus Lerdorf 2009-07-31 21:09:45 +00:00
parent f56d6b67b5
commit 8608857c1a
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -8,6 +8,7 @@
- Fixed signature generation/validation for zip archives in ext/phar. (Greg)
- Fixed memory leak in stream_is_local(). (Felipe)
- Fixed bug #48880 (Random Appearing open_basedir problem). (Rasmus+Gwynne)
- Fixed bug #49108 (2nd scan_dir produces seg fault). (Felipe)
- Fixed bug #49065 ("disable_functions" php.ini option does not work on
Zend extensions). (Stas)

View File

@ -93,7 +93,7 @@ PHPAPI ZEND_INI_MH(OnUpdateBaseDir)
p = (char **) (base + (size_t) mh_arg1);
if (stage == PHP_INI_STAGE_STARTUP || stage == PHP_INI_STAGE_SHUTDOWN) {
if (stage == PHP_INI_STAGE_STARTUP || stage == PHP_INI_STAGE_SHUTDOWN || stage == PHP_INI_STAGE_ACTIVATE || stage == PHP_INI_STAGE_DEACTIVATE) {
/* We're in a PHP_INI_SYSTEM context, no restrictions */
*p = new_value;
return SUCCESS;