]> granicus.if.org Git - php/commitdiff
- Fixed bug #55156 (ReflectionClass::getDocComment() returns comment even though...
authorPierrick Charron <pierrick@php.net>
Mon, 22 Aug 2011 01:11:22 +0000 (01:11 +0000)
committerPierrick Charron <pierrick@php.net>
Mon, 22 Aug 2011 01:11:22 +0000 (01:11 +0000)
# Patch was not committed on the PHP5.3 branch

Zend/zend_compile.c

index ff6170226138f2458d81c8813e00e1f4bbcad7b7..11138570a584cc9181d288304d8c8558a09634b7 100644 (file)
@@ -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;
+       }
 }
 /* }}} */