class_properties_const.phpt 577 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. Const class properties(runtime cache)
  3. --FILE--
  4. <?php
  5. class A {
  6. }
  7. $a = new A;
  8. echo "runtime\n";
  9. var_dump($a->{array()});
  10. var_dump($a->{1});
  11. var_dump($a->{function(){}});
  12. ?>
  13. --EXPECTF--
  14. Notice: Array to string conversion in %sclass_properties_const.php on line %d
  15. runtime
  16. Notice: Undefined property: A::$Array in %sclass_properties_const.php on line %d
  17. NULL
  18. Notice: Undefined property: A::$1 in %sclass_properties_const.php on line %d
  19. NULL
  20. Recoverable fatal error: Object of class Closure could not be converted to string in %sclass_properties_const.php on line %d