]> granicus.if.org Git - php/commitdiff
Fix bug #48880
authorRasmus Lerdorf <rasmus@php.net>
Fri, 31 Jul 2009 21:09:45 +0000 (21:09 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Fri, 31 Jul 2009 21:09:45 +0000 (21:09 +0000)
The ini entry was being corrupted because it wasn't being set
on the ACTIVATE and DEACTIVATE stages.

main/fopen_wrappers.c

index d4cbf0a9caf97992352695b7156ca9c37931f755..83a91cc4eefe82824d52763b8349474d600ea6cd 100644 (file)
@@ -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;