php-src/ext/reflection/tests/bug30856.phpt
Marcus Boerger e16bba12b1 - Prefix test names
- Add missing skipif
2006-03-12 12:38:25 +00:00

23 lines
394 B
PHP
Executable File

--TEST--
Reflection Bug #30856 (ReflectionClass::getStaticProperties segfaults)
--SKIPIF--
<?php extension_loaded('reflection') or die('skip'); ?>
--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===