Skip to content

Commit bcb7010

Browse files
committed
fix crash on restarting static PHP having session modules loaded
1 parent 462940c commit bcb7010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/session/session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1857,7 +1857,7 @@ PHP_MSHUTDOWN_FUNCTION(session)
18571857
#endif
18581858

18591859
ps_serializers[PREDEFINED_SERIALIZERS].name = NULL;
1860-
ps_modules[PREDEFINED_MODULES] = NULL;
1860+
memset(&ps_modules[PREDEFINED_MODULES], 0, (MAX_MODULES-PREDEFINED_MODULES)*sizeof(ps_module *));
18611861

18621862
return SUCCESS;
18631863
}

0 commit comments

Comments
 (0)