xref: /PHP-8.3/ext/opcache/tests/jit/mul_009.phpt (revision 3aaf2f6f)
1--TEST--
2JIT MUL: 009 memory leak
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8opcache.protect_memory=1
9--FILE--
10<?php
11$x[""][] = 1;
12$x[~"$y"] *= 1;
13?>
14--EXPECTF--
15Warning: Undefined variable $y in %smul_009.php on line 3
16
17Fatal error: Uncaught TypeError: Unsupported operand types: array * int in %smul_009.php:3
18Stack trace:
19#0 {main}
20  thrown in %smul_009.php on line 3