xref: /PHP-7.2/ext/reflection/tests/bug36308.phpt (revision ae88a243)
1--TEST--
2Reflection Bug #36308 (ReflectionProperty::getDocComment() does not reflect extended class commentary)
3--INI--
4opcache.save_comments=1
5--FILE--
6<?php
7class Base {
8    /** Base comment block */
9    public $foo = 'bar';
10}
11
12class Extended extends Base {
13    /** Extended commentary */
14    public $foo = 'zim';
15}
16
17$reflect = new ReflectionClass('Extended');
18$props = $reflect->getProperties();
19echo $props[0]->getDocComment();
20?>
21--EXPECT--
22/** Extended commentary */
23