mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
Fix bug #48880
The ini entry was being corrupted because it wasn't being set on the ACTIVATE and DEACTIVATE stages.
This commit is contained in:
parent
f56d6b67b5
commit
8608857c1a
1
NEWS
1
NEWS
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user