Patch the-patch for Reproducible crash Bug #63369
Patch version 2012-10-26 12:24 UTC
Return to Bug #63369 |
Download this patch
Patch Revisions:
Developer: tony2001@php.net
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 72f1dc3..0f60b71 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -3684,6 +3684,11 @@ PHP_MSHUTDOWN_FUNCTION(basic) /* {{{ */
PHP_RINIT_FUNCTION(basic) /* {{{ */
{
memset(BG(strtok_table), 0, 256);
+
+ BG(serialize_lock) = 0;
+ memset(&BG(serialize), 0, sizeof(BG(serialize)));
+ memset(&BG(unserialize), 0, sizeof(BG(unserialize)));
+
BG(strtok_string) = NULL;
BG(strtok_zval) = NULL;
BG(strtok_last) = NULL;
|