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)
|