php-src/ext/reflection/tests/bug30856.phpt

21 lines
327 B
Plaintext
Raw Normal View History

2004-11-24 19:56:25 +00:00
--TEST--
Reflection Bug #30856 (ReflectionClass::getStaticProperties segfaults)
2004-11-24 19:56:25 +00:00
--FILE--
2005-06-17 16:40:05 +00:00
<?php
2004-11-24 19:56:25 +00:00
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===