ID:               34243
 Updated by:       [EMAIL PROTECTED]
 Reported By:      colin at encode dot net dot au
-Status:           Assigned
+Status:           Closed
 Bug Type:         Scripting Engine problem
 Operating System: *
 PHP Version:      5.1.0RC1
 Assigned To:      helly
 New Comment:

This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2005-08-26 21:03:28] [EMAIL PROTECTED]

Reverting  
http://cvs.php.net/diff.php/ZendEngine2/zend_language_parser.y?r1=1.109&r2=1.110&ty=u
 
seems to fix it - at least after reverting it I couldn't  
create any not-working test case. 

------------------------------------------------------------------------

[2005-08-25 15:20:30] [EMAIL PROTECTED]

Assigned to the maintainer.

------------------------------------------------------------------------

[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

Reply via email to