dynamic_call_003.phpt 187 B

12345678910111213
  1. --TEST--
  2. Testing dynamic call with invalid method name
  3. --FILE--
  4. <?php
  5. $a = new stdClass;
  6. $b = 1;
  7. $a::$b();
  8. ?>
  9. --EXPECTF--
  10. Fatal error: Function name must be a string in %s on line %d