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

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. 


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

[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