bug30856.phpt 305 B

123456789101112131415161718
  1. --TEST--
  2. Reflection Bug #30856 (ReflectionClass::getStaticProperties segfaults)
  3. --FILE--
  4. <?php
  5. class bogus {
  6. const C = 'test';
  7. static $a = bogus::C;
  8. }
  9. $class = new ReflectionClass('bogus');
  10. var_dump($class->getStaticProperties());
  11. ?>
  12. --EXPECT--
  13. array(1) {
  14. ["a"]=>
  15. string(4) "test"
  16. }