summaryrefslogtreecommitdiff
path: root/main/fopen_wrappers.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2009-07-31 21:09:45 +0000
committerRasmus Lerdorf <rasmus@php.net>2009-07-31 21:09:45 +0000
commit8608857c1a833ce87ece01f9aafc08a51ce7f566 (patch)
tree3a89f40e3f0f2129844ac794cb5632dcfe96d9ed /main/fopen_wrappers.c
parentf56d6b67b54f20b04a3382a7885ece8fb0705af1 (diff)
downloadphp-git-8608857c1a833ce87ece01f9aafc08a51ce7f566.tar.gz
Fix bug #48880
The ini entry was being corrupted because it wasn't being set on the ACTIVATE and DEACTIVATE stages.
Diffstat (limited to 'main/fopen_wrappers.c')
-rw-r--r--main/fopen_wrappers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c
index c9c7545871..7c6dc4f7d5 100644
--- a/main/fopen_wrappers.c
+++ b/main/fopen_wrappers.c
@@ -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;