xref: /php-src/Zend/tests/bug41351.phpt (revision 9c144e0d)
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