bug60611.phpt 445 B

123456789101112131415161718192021222324252627
  1. --TEST--
  2. Bug #60611 (Segmentation fault with Cls::{expr}() syntax)
  3. --FILE--
  4. <?php
  5. class Cls {
  6. function __call($name, $arg) {
  7. }
  8. static function __callStatic($name, $arg) {
  9. }
  10. }
  11. $cls = new Cls;
  12. $cls->{0}();
  13. $cls->{1.0}();
  14. $cls->{true}();
  15. $cls->{false}();
  16. $cls->{null}();
  17. Cls::{0}();
  18. Cls::{1.0}();
  19. Cls::{true}();
  20. Cls::{false}();
  21. Cls::{null}();
  22. ?>
  23. --EXPECTF--
  24. Fatal error: Method name must be a string in %sbug60611.php on line %d