blob: 644531e37399a79dc1c0c6aa5990731a07b7c4d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--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"
|