summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lang/bug20993.phpt14
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/lang/bug20993.phpt b/tests/lang/bug20993.phpt
index 286bf225fe..fa64ea58d5 100644
--- a/tests/lang/bug20993.phpt
+++ b/tests/lang/bug20993.phpt
@@ -1,5 +1,10 @@
--TEST--
Bug #20993 (referenced array key, makes array global)
+--SKIPIF--
+<?php
+if(TRUE)
+ die("skip fix for this problem is yet undecided.");
+?>
--FILE--
<?php
$a = array(1);
@@ -17,7 +22,10 @@ function changeVal($arr)
$arr[0] = 2;
}
?>
---EXPECT--
-1 -b 1 -r 1
-1 -b 1 -r 1
+--EXPECTF--
1 -b 1 -r 1
+
+Notice: %s referenced element(s) %s
+%s
+2 -b 1 -r 2
+2 -b 1 -r 2