mirror of
https://github.com/php/php-src.git
synced 2026-04-26 09:28:21 +02:00
- Add new test
This commit is contained in:
Executable
+20
@@ -0,0 +1,20 @@
|
||||
--TEST--
|
||||
Bug #30856 (ReflectionClass::getStaticProperties segfaults)
|
||||
--FILE--
|
||||
<?
|
||||
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===
|
||||
Reference in New Issue
Block a user