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