com php-src: Add XFAIL test: ext/spl/tests/bug69335.phpt
| From: | Xinchen Hui | Date: | Tue, 31 Mar 2015 03:53:52 +0000 |
| Subject: | com php-src: Add XFAIL test: ext/spl/tests/bug69335.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85952@lists.php.net to get a copy of this message | ||
Commit: fd1a7c5f2d55949ac5a407aa5acec6d240417b1f
Author: Xinchen Hui <laruence@php.net> Tue, 31 Mar 2015 11:53:52 +0800
Parents: 74090539c154b39710bcba5dd3468fd75c9ee09c
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fd1a7c5f2d55949ac5a407aa5acec6d240417b1f
Log:
Add XFAIL test
Changed paths:
A ext/spl/tests/bug69335.phpt
Diff:
diff --git a/ext/spl/tests/bug69335.phpt b/ext/spl/tests/bug69335.phpt
new file mode 100644
index 0000000..0cb17d0
--- /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 => ?"