]> granicus.if.org Git - php/commitdiff
Fixed bug #33520 (crash if safe_mode is on and session.save_path is changed)
authorDmitry Stogov <dmitry@php.net>
Mon, 4 Jul 2005 12:47:26 +0000 (12:47 +0000)
committerDmitry Stogov <dmitry@php.net>
Mon, 4 Jul 2005 12:47:26 +0000 (12:47 +0000)
NEWS
sapi/aolserver/aolserver.c
sapi/apache2filter/apache_config.c
sapi/apache2handler/apache_config.c
sapi/nsapi/nsapi.c

diff --git a/NEWS b/NEWS
index 3d141569b9cceb304f497c98257682aba74a27df..fbfe172fe179b831f64b43d1b6859fbda750e7ed 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,8 @@ PHP                                                                        NEWS
 - Fixed memory corruption in ImageTTFText() with 64bit systems. (Andrey)
 - Fixed memory corruption in stristr(). (Derick)
 - Fixed segfaults when CURL callback functions throw exception. (Tony)
+- Fixed bug #33520 (crash if safe_mode is on and session.save_path is changed).
+  (Dmitry)
 - Fixed bug #33491 (crash after extending MySQLi internal class). (Tony)
 - Fixed bug #33340 (CLI Crash when calling php:function from XSLT). (Rob)
 - Fixed bug #33277 (private method accessed by child class). (Dmitry)
index 6f685ad9d44d5ca43d0bfcf0ee0302983396cb56..048521fbb3290c46502c8c48147b21be24ea1f49 100644 (file)
@@ -549,7 +549,7 @@ php_ns_config(php_ns_context *ctx, char global)
 
                                Ns_Log(Debug, "PHP configuration option '%s=%s'", new_key, val);
                                zend_alter_ini_entry(new_key, strlen(new_key) + 1, val, 
-                                               strlen(val) + 1, PHP_INI_SYSTEM, PHP_INI_STAGE_RUNTIME);
+                                               strlen(val) + 1, PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);
                                
                                efree(new_key);
                        }
index 61d565a230319c929ca89f8d5636c70865869943..ea62539b96d0d15618740657714266986728e117 100644 (file)
@@ -178,7 +178,7 @@ void apply_config(void *dummy)
                zend_hash_get_current_data(&d->config, (void **) &data);
                phpapdebug((stderr, "APPLYING (%s)(%s)\n", str, data->value));
                if (zend_alter_ini_entry(str, str_len, data->value, data->value_len, 
-                                       data->status, PHP_INI_STAGE_RUNTIME) == FAILURE) {
+                                       data->status, PHP_INI_STAGE_ACTIVATE) == FAILURE) {
                        phpapdebug((stderr, "..FAILED\n"));
                }       
        }
index bf0b2e0cc3d785a40c85b25f1b4fe1e28ff43221..62feef00d968713d73ca184beae752ae58966fcb 100644 (file)
@@ -166,7 +166,7 @@ void apply_config(void *dummy)
                        zend_hash_move_forward(&d->config)) {
                zend_hash_get_current_data(&d->config, (void **) &data);
                phpapdebug((stderr, "APPLYING (%s)(%s)\n", str, data->value));
-               if (zend_alter_ini_entry(str, str_len, data->value, data->value_len, data->status, PHP_INI_STAGE_RUNTIME) == FAILURE) {
+               if (zend_alter_ini_entry(str, str_len, data->value, data->value_len, data->status, PHP_INI_STAGE_ACTIVATE) == FAILURE) {
                        phpapdebug((stderr, "..FAILED\n"));
                }       
        }
index 868bf9b0d9c1895f849f15fafb42e79372f3a7a9..a441134d74df95ba723b7b61c3c73c96a8a591e0 100644 (file)
@@ -768,7 +768,7 @@ static void nsapi_php_ini_entries(NSLS_D TSRMLS_DC)
                                /* change the ini entry */
                                if (zend_alter_ini_entry(entry->param->name, strlen(entry->param->name)+1,
                                 entry->param->value, strlen(entry->param->value),
-                                PHP_INI_SYSTEM, PHP_INI_STAGE_RUNTIME)==FAILURE) {
+                                PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE)==FAILURE) {
                                        log_error(LOG_WARN, pblock_findval("fn", NSG(pb)), NSG(sn), NSG(rq), "Cannot change php.ini key \"%s\" to \"%s\"", entry->param->name, entry->param->value);
                                }
                        }