summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-03-31 11:53:52 +0800
committerXinchen Hui <laruence@php.net>2015-03-31 11:53:52 +0800
commitfd1a7c5f2d55949ac5a407aa5acec6d240417b1f (patch)
treec34b245fcfcead8dc572d6e921f897433850a511
parent74090539c154b39710bcba5dd3468fd75c9ee09c (diff)
downloadphp-git-fd1a7c5f2d55949ac5a407aa5acec6d240417b1f.tar.gz
Add XFAIL test
-rw-r--r--ext/spl/tests/bug69335.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/spl/tests/bug69335.phpt b/ext/spl/tests/bug69335.phpt
new file mode 100644
index 0000000000..0cb17d04b9
--- /dev/null
+++ b/ext/spl/tests/bug69335.phpt
@@ -0,0 +1,22 @@
+--TEST--
+Bug #69335 (SplArray BC break)
+--XFAIL--
+see https://bugs.php.net/bug.php?id=69335
+--FILE--
+<?php
+$a = array(1=>1, 3=>3, 5=>5, 7=>7);
+$a = new ArrayObject($a);
+
+foreach ($a as $k => $v) {
+ var_dump("$k => $v");
+ if ($k == 3) {
+ $a['a'] = "?";
+ }
+}
+?>
+--EXPECTF--
+string(6) "1 => 1"
+string(6) "3 => 3"
+string(6) "5 => 5"
+string(6) "7 => 7"
+string(6) "a => ?"