summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug70982.phpt
blob: d530846f645350ede9b7afae8c89e10c231473ff (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"