mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
21 lines
327 B
PHP
21 lines
327 B
PHP
--TEST--
|
|
Reflection 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===
|