php-src/ext/reflection/tests/bug30856.phpt
2004-11-24 19:56:25 +00:00

21 lines
313 B
PHP
Executable File

--TEST--
Bug #30856 (ReflectionClass::getStaticProperties segfaults)
--FILE--
<?
class bogus {
const C = 'test';
static $a = bogus::C;
}
$class = new ReflectionClass('bogus');
var_dump($class->getStaticProperties());
?>
===DONE===
--EXPECT--
array(1) {
["a"]=>
string(4) "test"
}
===DONE===