xref: /PHP-8.0/ext/opcache/tests/jit/mul_005.phpt (revision 06275d94)
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_buffer_size=1M
8opcache.jit=function
9opcache.protect_memory=1
10--SKIPIF--
11<?php require_once('skipif.inc'); ?>
12--FILE--
13<?php
14function test($a) {
15    var_dump(+$a);
16}
17
18try {
19    test('foo');
20} catch (TypeError $e) {
21    echo $e->getMessage(), "\n";
22}
23?>
24--EXPECT--
25Unsupported operand types: string * int
26