stas Tue Sep 20 10:05:17 2005 EDT Modified files: /php-src/ext/session session.c Log: fix crash on restarting static PHP having session modules loaded http://cvs.php.net/diff.php/php-src/ext/session/session.c?r1=1.419&r2=1.420&ty=u Index: php-src/ext/session/session.c diff -u php-src/ext/session/session.c:1.419 php-src/ext/session/session.c:1.420 --- php-src/ext/session/session.c:1.419 Thu Sep 15 12:19:44 2005 +++ php-src/ext/session/session.c Tue Sep 20 10:05:16 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: session.c,v 1.419 2005/09/15 16:19:44 derick Exp $ */ +/* $Id: session.c,v 1.420 2005/09/20 14:05:16 stas Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1859,7 +1859,7 @@ #endif ps_serializers[PREDEFINED_SERIALIZERS].name = NULL; - ps_modules[PREDEFINED_MODULES] = NULL; + memset(&ps_modules[PREDEFINED_MODULES], 0, (MAX_MODULES-PREDEFINED_MODULES)*sizeof(ps_module *)); return SUCCESS; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php