xref: /PHP-8.3/Zend/tests/bug41351.phpt (revision 782352c5)
1--TEST--
2Bug #41351 (Invalid opcode with foreach ($a[] as $b))
3--FILE--
4<?php
5
6$a = array();
7
8foreach($a[] as $b) {
9}
10
11echo "Done\n";
12?>
13--EXPECTF--
14Fatal error: Cannot use [] for reading in %s on line %d
15