php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch init-serialize-levels.diff for Scripting Engine problem Bug #60919

Patch version 2012-02-05 14:03 UTC

Return to Bug #60919 | Download this patch
Patch Revisions:

Developer: thekid@php.net

Index: ext/standard/basic_functions.c
===================================================================
--- ext/standard/basic_functions.c	(revision 323069)
+++ ext/standard/basic_functions.c	(working copy)
@@ -3451,6 +3451,8 @@
 	BG(user_tick_functions) = NULL;
 	BG(user_filter_map) = NULL;
 	BG(serialize_lock) = 0;
+	BG(serialize).level = 0;
+	BG(unserialize).level = 0;
 	
 	memset(&BG(serialize), 0, sizeof(BG(serialize)));
 	memset(&BG(unserialize), 0, sizeof(BG(unserialize)));
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Dec 08 19:01:24 2019 UTC