php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #53629
Patch heredoc revision 2010-12-29 17:10 UTC by bjori@php.net

Patch heredoc for Scripting Engine problem Bug #53629

Patch version 2010-12-29 17:10 UTC

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

Developer: bjori@php.net

Index: Zend/zend_language_scanner.l
===================================================================
--- Zend/zend_language_scanner.l	(revision 306824)
+++ Zend/zend_language_scanner.l	(working copy)
@@ -218,6 +218,12 @@
 	SCNG(input_filter) = lex_state->input_filter;
 	SCNG(output_filter) = lex_state->output_filter;
 	SCNG(script_encoding) = lex_state->script_encoding;
+
+	if (CG(heredoc)) {
+		efree(CG(heredoc));
+		CG(heredoc_len)=0;
+	}
+
 }
 
 ZEND_API void zend_destroy_file_handle(zend_file_handle *file_handle TSRMLS_DC)
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sat Apr 19 12:01:52 2014 UTC