Edit report at https://bugs.php.net/bug.php?id=60726&edit=1
ID: 60726 User updated by: otakarek at post dot cz Reported by: otakarek at post dot cz Summary: Class name with namespace in ReflectionClass() returns always false -Status: Open +Status: Closed Type: Bug Package: Reflection related Operating System: GNU Linux PHP Version: 5.3.9 Block user comment: N Private report: N New Comment: In 5.3.3 ok: <?php /** * A test class * * @param foo bar * @return baz */ namespace Model; class Test { } $rc = new \ReflectionClass('Model\Test'); var_dump($rc->getDocComment()); ?> In 5.3.9 must be: <?php namespace Model; /** * A test class * * @param foo bar * @return baz */ class Test { } $rc = new \ReflectionClass('Model\Test'); var_dump($rc->getDocComment()); ?> Previous Comments: ------------------------------------------------------------------------ [2012-01-12 13:39:19] otakarek at post dot cz Description: ------------ --- >From manual page: >http://www.php.net/reflectionclass.getdoccomment#refsect1-reflectionclass.getdoccomment-seealso --- Test script: --------------- <?php /** * A test class * * @param foo bar * @return baz */ namespace Model; class Test { } $rc = new \ReflectionClass('Model\Test'); var_dump($rc->getDocComment()) ?> Expected result: ---------------- string(55) "/** * A test class * * @param foo bar * @return baz */" Actual result: -------------- bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60726&edit=1