1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 16:38:25 +02:00
Files
archived-php-src/ext/opcache/tests/jit/mul_005.phpt
T
Dmitry Stogov 679bfb1522 Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0:
  JIT: fixed MUL+SEND optimization when MUL throws an exception
2021-09-08 17:57:21 +03:00

26 lines
434 B
PHP

--TEST--
JIT MUL: 005 exception and SEND optimization
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit=function
opcache.protect_memory=1
--EXTENSIONS--
opcache
--FILE--
<?php
function test($a) {
var_dump(+$a);
}
try {
test('foo');
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Unsupported operand types: string * int