mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
18 lines
285 B
PHP
18 lines
285 B
PHP
--TEST--
|
|
Bug #80564: ReflectionProperty::__toString() renders current value, not default value
|
|
--FILE--
|
|
<?php
|
|
|
|
class A {
|
|
public static $x = 'default';
|
|
}
|
|
|
|
A::$x = new stdClass;
|
|
|
|
$rp = new ReflectionProperty('A', 'x');
|
|
echo $rp;
|
|
|
|
?>
|
|
--EXPECT--
|
|
Property [ public static $x = 'default' ]
|