summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug30856.phpt
blob: 9b54221860185b358a700713ec9435fd559ad8fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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===