summaryrefslogtreecommitdiff
path: root/sapi/nsapi
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2005-07-04 12:47:10 +0000
committerDmitry Stogov <dmitry@php.net>2005-07-04 12:47:10 +0000
commitd647e000a7678ef5dbc198c04bce92a055d85437 (patch)
tree7b91bff791dc62fd610c81d710cc435bad041187 /sapi/nsapi
parent6ba4559b51e86e1f8a3565f749870edbea7eb146 (diff)
downloadphp-git-d647e000a7678ef5dbc198c04bce92a055d85437.tar.gz
Fixed bug #33520 (crash if safe_mode is on and session.save_path is changed)
Diffstat (limited to 'sapi/nsapi')
-rw-r--r--sapi/nsapi/nsapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/nsapi/nsapi.c b/sapi/nsapi/nsapi.c
index 7b1e301555..b701560b3d 100644
--- a/sapi/nsapi/nsapi.c
+++ b/sapi/nsapi/nsapi.c
@@ -774,7 +774,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);
}
}