]> granicus.if.org Git - php/commitdiff
Reapply the commit of revision 315259 on 5.3.9
authorPierrick Charron <pierrick@php.net>
Tue, 23 Aug 2011 03:09:09 +0000 (03:09 +0000)
committerPierrick Charron <pierrick@php.net>
Tue, 23 Aug 2011 03:09:09 +0000 (03:09 +0000)
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;
+       }
 }
 /* }}} */