summaryrefslogtreecommitdiff
path: root/ext/session/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/session/session.c')
-rw-r--r--ext/session/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/session/session.c b/ext/session/session.c
index 6ddedfcfbf..455fd11296 100644
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@ -108,7 +108,7 @@ static PHP_INI_MH(OnUpdateStringCopy)
p = (char **) (base+(size_t) mh_arg1);
- if(*p) {
+ if(*p && stage != PHP_INI_STAGE_STARTUP) {
STR_FREE(*p);
}