summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierrick Charron <pierrick@php.net>2011-08-22 01:11:22 +0000
committerPierrick Charron <pierrick@php.net>2011-08-22 01:11:22 +0000
commitef48624cd3f0ee17c4acd33a89a0a230d53528ea (patch)
tree8b38daea8ee3861c77497c2ad90924e3ed8fcfc2
parent0bea1fea8fd08c3f9af40f2c4849bbcc61ef9a8b (diff)
downloadphp-git-ef48624cd3f0ee17c4acd33a89a0a230d53528ea.tar.gz
- Fixed bug #55156 (ReflectionClass::getDocComment() returns comment even though the class has none)
# Patch was not committed on the PHP5.3 branch
-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;
+ }
}
/* }}} */