Bug #55156 [NEW]: ReflectionClass::getDocComment() returns comment even though the class has none
| From: | schmittjoh at gmail dot com | Date: | Thu, 07 Jul 2011 10:46:11 +0000 |
| Subject: | Bug #55156 [NEW]: ReflectionClass::getDocComment() returns comment even though the class has none | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-161683@lists.php.net to get a copy of this message | ||
From:
Operating system: Ubuntu 10.04
PHP version: 5.3.6
Package: Reflection related
Bug Type: Bug
Bug description:ReflectionClass::getDocComment() returns comment even though the class has none
Description:
------------
In some cases, the ReflectionClass::getDocComment() method returns a doc
comment that belongs to another class than the one the ReflectionClass
represents.
I haven't been able to reproduce in a isolated script, but instead I have
added a failing unit test to Doctrine's unit test suite, see
https://github.com/schmittjoh/common/commit/2d77264758ddd9658791b4284a9492a38bb1b049
You can run this test, by performing the following steps:
git clone http://github.com/schmittjoh/common.git
cd common
git checkout strangePhpError
phpunit
Test script:
---------------
see above
--
Edit bug report at https://bugs.php.net/bug.php?id=55156&edit=1
--
Try a snapshot (PHP 5.2): https://bugs.php.net/fix.php?id=55156&r=trysnapshot52
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55156&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55156&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55156&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55156&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55156&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55156&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55156&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55156&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55156&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55156&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55156&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55156&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55156&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55156&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55156&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55156&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55156&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55156&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55156&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55156&r=mysqlcfg
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55156&r=trysnapshot54