ID: 34243
Updated by: [EMAIL PROTECTED]
Reported By: colin at encode dot net dot au
-Status: Open
+Status: Assigned
Bug Type: Scripting Engine problem
Operating System: *
PHP Version: 5.1.0RC1
-Assigned To:
+Assigned To: helly
New Comment:
Assigned to the maintainer.
Previous Comments:
------------------------------------------------------------------------
[2005-08-25 02:27:32] colin at encode dot net dot au
Description:
------------
The getDocComment() method from the Reflection API (in this case, the
ReflectionClass class) returns no result where an if block exists
before the documentation comment.
Reproduce code:
---------------
if (!class_exists('AnotherObject'))
{
require("anotherobject.php");
}
/**
* Comment to test getDocComment()
*/
class TestObject
{
}
$rclass = new ReflectionClass('TestObject');
echo "Comment: '".$rclass->getDocComment()."'";
Expected result:
----------------
Comment: '/** * Comment to test getDocComment() */'
Actual result:
--------------
Comment: ''
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34243&edit=1