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