php-src/ext/reflection/tests/bug30856.phpt
2005-08-15 14:37:55 +00:00

27 lines
383 B
PHP
Executable File

--TEST--
Bug #30856 (ReflectionClass::getStaticProperties segfaults)
--FILE--
<?php
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===
--UEXPECT--
array(1) {
[u"a"]=>
unicode(4) "test"
}
===DONE===