php-src/ext/reflection/tests/bug36308.phpt

24 lines
497 B
Plaintext
Raw Normal View History

2006-02-09 18:18:42 +00:00
--TEST--
Reflection Bug #36308 (ReflectionProperty::getDocComment() does not reflect extended class commentary)
2013-03-16 12:11:00 +00:00
--INI--
opcache.save_comments=1
opcache.load_comments=1
2006-02-09 18:18:42 +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 */