diff options
author | Francois Laupretre <francois@php.net> | 2015-07-23 00:08:57 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2016-03-09 14:41:37 +0100 |
commit | 56fce8990f8872f9d36a4f1ea9a5a14bee2ad016 (patch) | |
tree | 15be39a013ebbebdf3d191ad91d6492df1dc240b /tests/lang | |
parent | 370b7039e4ba1f54d8051779c04c1f8d8e16837b (diff) | |
download | php-git-56fce8990f8872f9d36a4f1ea9a5a14bee2ad016.tar.gz |
strpos()/stripos(): Add support for negative offsets
Diffstat (limited to 'tests/lang')
-rw-r--r-- | tests/lang/bug22592.phpt | 5 |
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" |