1--TEST--
2FE_RESET with potentially undef operand
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7--FILE--
8<?php
9function test($c) {
10    if ($c) {
11        $a[] = null;
12    }
13    foreach ($a as $k) {}
14}
15test(false);
16?>
17--EXPECTF--
18Warning: Undefined variable $a in %s on line %d
19
20Warning: foreach() argument must be of type array|object, null given in %s on line %d
21