mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
5ac55af5e5
This has also been fixed by 3eb97a4566
.
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' ]
|