From: Rasmus Lerdorf Date: Fri, 31 Jul 2009 21:09:45 +0000 (+0000) Subject: Fix bug #48880 X-Git-Tag: php-5.4.0alpha1~191^2~2904 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53237e478b51c220715003b22d641ecc85ec2d5f;p=php Fix bug #48880 The ini entry was being corrupted because it wasn't being set on the ACTIVATE and DEACTIVATE stages. --- diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index d4cbf0a9ca..83a91cc4ee 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -92,7 +92,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;