php-8.0.30-src/ext/opcache/tests/jit/mul_005.phpt

26 lines
459 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
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
function test($a) {
var_dump(+$a);
}
try {
test('foo');
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Unsupported operand types: string * int