mul_005.phpt 434 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. JIT MUL: 005 exception and SEND optimization
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.file_update_protection=0
  7. opcache.jit_buffer_size=1M
  8. opcache.jit=function
  9. opcache.protect_memory=1
  10. --EXTENSIONS--
  11. opcache
  12. --FILE--
  13. <?php
  14. function test($a) {
  15. var_dump(+$a);
  16. }
  17. try {
  18. test('foo');
  19. } catch (TypeError $e) {
  20. echo $e->getMessage(), "\n";
  21. }
  22. ?>
  23. --EXPECT--
  24. Unsupported operand types: string * int