php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #63369
Patch the-patch revision 2012-10-26 12:24 UTC by tony2001@php.net

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;
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sat Apr 19 17:01:54 2014 UTC