summaryrefslogtreecommitdiff
path: root/Zend/tests/bug41351_2.phpt
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-05-11 09:39:36 +0000
committerAntony Dovgal <tony2001@php.net>2007-05-11 09:39:36 +0000
commit756f3f60cae9938b46feda806069ddd07b057b0d (patch)
treefd8a01e7ebadde035456054120483aad291b34be /Zend/tests/bug41351_2.phpt
parentd2fe65c191f42ba4658db96f69735a637777c64e (diff)
downloadphp-git-756f3f60cae9938b46feda806069ddd07b057b0d.tar.gz
MFH: fix #41351 (Invalid opcode with foreach ($a[] as $b))
Diffstat (limited to 'Zend/tests/bug41351_2.phpt')
-rw-r--r--Zend/tests/bug41351_2.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Zend/tests/bug41351_2.phpt b/Zend/tests/bug41351_2.phpt
new file mode 100644
index 0000000000..7009eaa457
--- /dev/null
+++ b/Zend/tests/bug41351_2.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Bug #41351 (Invalid opcode with foreach ($a[] as $b)) - 2
+--FILE--
+<?php
+
+$a = array();
+
+foreach($a[]['test'] as $b) {
+}
+
+echo "Done\n";
+?>
+--EXPECTF--
+Fatal error: Cannot use [] for reading in %s on line %d