svn: /php/php-src/branches/PHP_5_3/Zend/ zend_compile.c
| From: | Pierrick Charron | Date: | Mon, 22 Aug 2011 01:11:22 +0000 |
| Subject: | svn: /php/php-src/branches/PHP_5_3/Zend/ zend_compile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-65924@lists.php.net to get a copy of this message | ||
pierrick Mon, 22 Aug 2011 01:11:22 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=315259
Log:
- Fixed bug #55156 (ReflectionClass::getDocComment() returns comment even though the class has none)
# Patch was not committed on the PHP5.3 branch
Bug: https://bugs.php.net/55156 (Closed)
ReflectionClass::getDocComment() returns comment even though the class has none
Changed paths:
U php/php-src/branches/PHP_5_3/Zend/zend_compile.c
Modified: php/php-src/branches/PHP_5_3/Zend/zend_compile.c
===================================================================
--- php/php-src/branches/PHP_5_3/Zend/zend_compile.c 2011-08-21 22:57:13 UTC (rev 315258)
+++ php/php-src/branches/PHP_5_3/Zend/zend_compile.c 2011-08-22 01:11:22 UTC (rev 315259)
@@ -5184,6 +5184,12 @@
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;
+ }
}
/* }}} */