mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
26 lines
386 B
Plaintext
26 lines
386 B
Plaintext
|
--TEST--
|
||
|
Bug #41884 (ReflectionClass::getDefaultProperties() does not handle static attributes)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
class Foo
|
||
|
{
|
||
|
protected static $fooStatic = 'foo';
|
||
|
protected $foo = 'foo';
|
||
|
}
|
||
|
|
||
|
$class = new ReflectionClass('Foo');
|
||
|
|
||
|
var_dump($class->getDefaultProperties());
|
||
|
|
||
|
echo "Done\n";
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
array(2) {
|
||
|
["fooStatic"]=>
|
||
|
string(3) "foo"
|
||
|
["foo"]=>
|
||
|
string(3) "foo"
|
||
|
}
|
||
|
Done
|