xref: /PHP-8.3/ext/opcache/tests/bug75687.phpt (revision e9f783fc)
1--TEST--
2Bug #75687 (var 8 (TMP) has array key type but not value type)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--EXTENSIONS--
8opcache
9--FILE--
10<?php
11
12function x($y)
13{
14    if (is_array($y)) {
15        $z = is_array($y) ? array() : array($y);
16    }
17}
18?>
19okey
20--EXPECT--
21okey
22