ID:               36308
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Assigned
+Status:           Closed
 Bug Type:         Unknown/Other Function
 Operating System: Irrelevant
 PHP Version:      5.1.2
 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:
------------------------------------------------------------------------

[2006-02-07 00:33:32] [EMAIL PROTECTED]

Description:
------------
When using ReflectionProperty::getDocComment() to get the comments for
a property in an extended class, it returns the comments for the base
class, not the extended one.

Reproduce code:
---------------
<?php
class Base {
    /** Base comment block */
    public $foo = 'bar';
}

class Extended extends Base {
    /** Extended commentary */
    public $foo = 'zim';
}


$reflect = new ReflectionClass('Extended');
$props = $reflect->getProperties();
$docs = $props[0]->getDocComment();
print $docs;
// should output "Extended commentary"
// but is in fact "Base comment block"
?>

Expected result:
----------------
/** Extended commentary */

Actual result:
--------------
/** Base comment block */


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


-- 
Edit this bug report at http://bugs.php.net/?id=36308&edit=1

Reply via email to