summaryrefslogtreecommitdiff
path: root/tests/lang
diff options
context:
space:
mode:
authorFrancois Laupretre <francois@php.net>2015-07-23 00:08:57 +0200
committerNikita Popov <nikic@php.net>2016-03-09 14:41:37 +0100
commit56fce8990f8872f9d36a4f1ea9a5a14bee2ad016 (patch)
tree15be39a013ebbebdf3d191ad91d6492df1dc240b /tests/lang
parent370b7039e4ba1f54d8051779c04c1f8d8e16837b (diff)
downloadphp-git-56fce8990f8872f9d36a4f1ea9a5a14bee2ad016.tar.gz
strpos()/stripos(): Add support for negative offsets
Diffstat (limited to 'tests/lang')
-rw-r--r--tests/lang/bug22592.phpt5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lang/bug22592.phpt b/tests/lang/bug22592.phpt
index 270584185f..4614efc169 100644
--- a/tests/lang/bug22592.phpt
+++ b/tests/lang/bug22592.phpt
@@ -32,7 +32,8 @@ var_dump($result);
$e = $result[1] = $result[6];
var_dump($result);
var_dump($a, $b, $c, $d, $e);
-$result[-1] = 'a';
+$result[0] = $result[-4] = $result[-1] = 'a';
+var_dump($result);
?>
--EXPECT--
string(5) "* *-*"
@@ -50,4 +51,4 @@ string(1) "s"
string(1) "4"
string(1) "5"
string(1) "5"
-[Illegal string offset: -1]
+string(9) "a54s4a50a"