Edit report at https://bugs.php.net/bug.php?id=55156&edit=1
ID: 55156
Comment by: kotlyar dot maksim at gmail dot com
Reported by: schmittjoh at gmail dot com
Summary: ReflectionClass::getDocComment() returns comment
even though the class has none
Status: Closed
Type: Bug
Package: Reflection related
Operating System: Ubuntu 10.04
PHP Version: 5.3.6
Assigned To: felipe
Block user comment: N
Private report: N
New Comment:
I also have such problem while using Doctrine2
My environment:
Ubuntu 11.10
PHP 5.3.6-13ubuntu3.6 with Suhosin-Patch (cli) (built: Feb 11 2012 02:17:16)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans
I have fixed it by adding an empty doc block to a class Doctrine complains to.
Previous Comments:
------------------------------------------------------------------------
[2011-10-16 20:03:18] karsten at typo3 dot org
I have seen this running PHP 5.3.8, so it seems the fix wasn't complete... I'll
check with the test mentioned above.
------------------------------------------------------------------------
[2011-08-22 01:11:15] [email protected]
Automatic comment from SVN on behalf of pierrick
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
------------------------------------------------------------------------
[2011-07-07 19:07:13] [email protected]
Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&revision=313056
Log: - Fixed bug #55156 (ReflectionClass::getDocComment() returns comment even
though the class has none)
------------------------------------------------------------------------
[2011-07-07 19:07:01] [email protected]
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2011-07-07 06:50:20] schmittjoh at gmail dot com
Note that this only happens if the class that ReflectionClass represents has no
doc comment itself.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=55156
--
Edit this bug report at https://bugs.php.net/bug.php?id=55156&edit=1