bug36308.phpt

来自「PHP v6.0 For Linux 运行环境:Win9X/ WinME/ Wi」· PHPT 代码 · 共 22 行

PHPT
22
字号
--TEST--Reflection Bug #36308 (ReflectionProperty::getDocComment() does not reflect extended class commentary)--SKIPIF--<?php extension_loaded('reflection') or die('skip'); ?>--FILE--<?phpclass 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 */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?