dmitry Tue Dec 7 13:02:25 2004 EDT
Modified files:
/php-src/ext/session session.c
Log:
Fixed crash in phpinfo() after graceful Apache restart.
http://cvs.php.net/diff.php/php-src/ext/session/session.c?r1=1.400&r2=1.401&ty=u
Index: php-src/ext/session/session.c
diff -u php-src/ext/session/session.c:1.400 php-src/ext/session/session.c:1.401
--- php-src/ext/session/session.c:1.400 Mon Oct 4 16:17:06 2004
+++ php-src/ext/session/session.c Tue Dec 7 13:02:25 2004
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: session.c,v 1.400 2004/10/04 20:17:06 andi Exp $ */
+/* $Id: session.c,v 1.401 2004/12/07 18:02:25 dmitry Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -169,6 +169,7 @@
PS_SERIALIZER_FUNCS(php_binary);
#define MAX_SERIALIZERS 10
+#define PREDEFINED_SERIALIZERS 2
static ps_serializer ps_serializers[MAX_SERIALIZERS + 1] = {
PS_SERIALIZER_ENTRY(php),
@@ -176,6 +177,7 @@
};
#define MAX_MODULES 10
+#define PREDEFINED_MODULES 2
static ps_module *ps_modules[MAX_MODULES + 1] = {
ps_files_ptr,
@@ -1808,6 +1810,9 @@
PHP_MSHUTDOWN(ps_mm) (SHUTDOWN_FUNC_ARGS_PASSTHRU);
#endif
+ ps_serializers[PREDEFINED_SERIALIZERS].name = NULL;
+ ps_modules[PREDEFINED_MODULES] = NULL;
+
return SUCCESS;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php