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