xref: /PHP-7.4/Zend/tests/foreach_undefined.phpt (revision 782352c5)
1--TEST--
2foreach() & undefined var
3--FILE--
4<?php
5
6foreach($a as $val);
7
8echo "Done\n";
9?>
10--EXPECTF--
11Notice: Undefined variable: a in %s on line %d
12
13Warning: Invalid argument supplied for foreach() in %s on line %d
14Done
15