Guys,

These patches don't work for inheritance.

E.g.

<?
class a {

        /**
        * This is the base class
        **/
        public $a;
}

class b extends a {
        /**
        * This is the extending class
        **/
        public $a;
}

$prop = new ReflectionProperty("a","a");
echo "BASE: ".$prop->getDocComment()."\n";


$prop = new ReflectionProperty("b","a");
echo "EXT : ".$prop->getDocComment()."\n";
?>

Prints:

BASE: /**
        * This is the base class
        **/
EXT : /**
        * This is the base class
        **/

I have patches to fix. You want?

Duncan

On Friday 22 April 2005 8:37 am, Marcus Boerger wrote:
> Hello Sebastian,
>
> Friday, April 22, 2005, 6:01:20 AM, you wrote:
> > Marcus Boerger wrote:
> >> helly         Tue Apr 19 18:05:00 2005 EDT
> >>
> >>   Modified files:
> >>     /ZendEngine2      zend_API.c zend_API.h zend_compile.c
> >> zend_compile.h zend_reflection_api.c
> >>   Log:
> >>   - Add ReflectionProperty::getDocComment()
> >
> >  Thank you, Marcus. Any chance of merging this to PHP_5_0?
>
> no, it is a new feature.
>
> marcus

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to