php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #51243
Patch fix-segfault-when-enable-zend-multibyte revision 2011-03-30 09:38 UTC by ks dot 08651 at i-revo dot co dot jp

Patch fix-segfault-when-enable-zend-multibyte for Scripting Engine problem Bug #51243

Patch version 2011-03-30 09:38 UTC

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

Developer: ks.08651@i-revo.co.jp

--- Zend/zend_language_scanner.l.orig	2011-01-04 00:35:59.000000000 +0900
+++ Zend/zend_language_scanner.l	2011-03-30 17:28:42.000000000 +0900
@@ -152,6 +152,11 @@
 	CG(doc_comment) = NULL;
 	CG(doc_comment_len) = 0;
 	zend_stack_init(&SCNG(state_stack));
+
+#ifdef ZEND_MULTIBYTE
+	SCNG(script_org) = NULL;
+	SCNG(script_filtered) = NULL;
+#endif /* ZEND_MULTIBYTE */
 }
 
 void shutdown_scanner(TSRMLS_D)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Nov 25 05:01:31 2024 UTC