tmp_001.phpt 485 B

123456789101112131415161718
  1. --TEST--
  2. TMP variable optimization 001: TMP variable renumbering should be done after DFA optimizations
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.optimization_level=-1
  7. --FILE--
  8. <?php
  9. is_a((int)" $y " + 0);
  10. ?>
  11. --EXPECTF--
  12. Warning: Undefined variable $y in %stmp_001.php on line 2
  13. Fatal error: Uncaught ArgumentCountError: is_a() expects at least 2 arguments, 1 given in %stmp_001.php:2
  14. Stack trace:
  15. #0 %stmp_001.php(2): is_a(0)
  16. #1 {main}
  17. thrown in %stmp_001.php on line 2