From 8608857c1a833ce87ece01f9aafc08a51ce7f566 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. --- NEWS | 1 + main/fopen_wrappers.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 59282e8854..97f1a50577 100644 --- a/NEWS +++ b/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) 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; -- 2.40.0