php-src/ext/reflection/tests/bug70982.phpt
2020-02-03 22:52:20 +01:00

23 lines
355 B
PHP

--TEST--
Bug #70982 (setStaticPropertyValue behaviors inconsistently with 5.6)
--FILE--
<?php
class Foo {
static $abc;
function __construct()
{
var_dump(self::$abc);
}
}
class Bar extends Foo {
}
$rf = new ReflectionClass('Bar');
$rf->setStaticPropertyValue('abc', 'hi');
$foo = $rf->newInstance();
?>
--EXPECT--
string(2) "hi"