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