From c27da034d054df28b610fbe55cecc708b0e46b98 Mon Sep 17 00:00:00 2001 From: Pierrick Charron Date: Tue, 23 Aug 2011 03:09:09 +0000 Subject: [PATCH] Reapply the commit of revision 315259 on 5.3.9 --- Zend/zend_compile.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index ff61702261..11138570a5 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -5184,6 +5184,12 @@ void zend_do_begin_namespace(const znode *name, zend_bool with_bracket TSRMLS_DC efree(CG(current_import)); CG(current_import) = NULL; } + + if (CG(doc_comment)) { + efree(CG(doc_comment)); + CG(doc_comment) = NULL; + CG(doc_comment_len) = 0; + } } /* }}} */ -- 2.50.1