xref: /PHP-8.4/ext/opcache/tests/jit/gh12428.phpt (revision dabced0f)
1--TEST--
2GH-12428: Assertion with function/tracing JIT
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6--FILE--
7<?php
8function validate($value)
9{
10    foreach ([0] as $_) {
11        $a = &$value->a;
12        $value->a ?? null;
13    }
14}
15
16validate((object) []);
17validate((object) []);
18validate((object) ['b' => 0]);
19?>
20DONE
21--EXPECT--
22DONE
23