mirror of
https://github.com/php/php-src.git
synced 2024-10-21 16:33:44 +00:00
e16bba12b1
- Add missing skipif
23 lines
394 B
PHP
Executable File
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===
|