From 53237e478b51c220715003b22d641ecc85ec2d5f Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Fri, 31 Jul 2009 21:09:45 +0000 Subject: [PATCH] Fix bug #48880 The ini entry was being corrupted because it wasn't being set on the ACTIVATE and DEACTIVATE stages. --- main/fopen_wrappers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1