summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierrick Charron <pierrick@php.net>2011-08-23 03:09:09 +0000
committerPierrick Charron <pierrick@php.net>2011-08-23 03:09:09 +0000
commitc27da034d054df28b610fbe55cecc708b0e46b98 (patch)
treecdda191a9f68741dff85cb36193d2619db0c1db2
parentdbf744ad784b364a268e197d9b6d644fd221b41b (diff)
downloadphp-git-c27da034d054df28b610fbe55cecc708b0e46b98.tar.gz
Reapply the commit of revision 315259 on 5.3.9
-rw-r--r--Zend/zend_compile.c6
1 files changed, 6 insertions, 0 deletions
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;
+ }
}
/* }}} */