mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
e16bba12b1
- Add missing skipif
22 lines
507 B
PHP
Executable File
22 lines
507 B
PHP
Executable File
--TEST--
|
|
Reflection Bug #36308 (ReflectionProperty::getDocComment() does not reflect extended class commentary)
|
|
--SKIPIF--
|
|
<?php extension_loaded('reflection') or die('skip'); ?>
|
|
--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 */
|