mirror of
https://github.com/php/php-src.git
synced 2026-04-24 16:38:25 +02:00
679bfb1522
* PHP-8.0: JIT: fixed MUL+SEND optimization when MUL throws an exception
26 lines
434 B
PHP
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
|