19 lines
336 B
Plaintext
19 lines
336 B
Plaintext
|
|
--TEST--
|
||
|
|
Bug #80821: ReflectionProperty::getDefaultValue() returns current value for statics
|
||
|
|
--FILE--
|
||
|
|
<?php
|
||
|
|
|
||
|
|
class Statics {
|
||
|
|
public static $staticVar = 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
Statics::$staticVar = 2;
|
||
|
|
|
||
|
|
$reflect = new \ReflectionClass(Statics::class);
|
||
|
|
$prop = $reflect->getProperty("staticVar");
|
||
|
|
var_dump($prop->getDefaultValue());
|
||
|
|
|
||
|
|
?>
|
||
|
|
--EXPECT--
|
||
|
|
int(1)
|