2006-02-09 18:18:18 +00:00
|
|
|
--TEST--
|
2006-03-12 12:38:25 +00:00
|
|
|
Reflection Bug #36308 (ReflectionProperty::getDocComment() does not reflect extended class commentary)
|
|
|
|
--SKIPIF--
|
|
|
|
<?php extension_loaded('reflection') or die('skip'); ?>
|
2006-02-09 18:18:18 +00:00
|
|
|
--FILE--
|
|
|
|
<?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();
|
|
|
|
echo $props[0]->getDocComment();
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
/** Extended commentary */
|