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