1--TEST--
2strripos() function
3--FILE--
4<?php
5	var_dump(strripos("test test string", "test"));
6	var_dump(strripos("test string sTring", "string"));
7	var_dump(strripos("test strip string strand", "str"));
8	var_dump(strripos("I am what I am and that's all what I am", "am", -3));
9	var_dump(strripos("test string", "g"));
10	var_dump(strripos("te".chr(0)."st", chr(0)));
11	var_dump(strripos("tEst", "test"));
12	var_dump(strripos("teSt", "test"));
13	var_dump(@strripos("foo", "f", 1));
14	var_dump(@strripos("", ""));
15	var_dump(@strripos("a", ""));
16	var_dump(@strripos("", "a"));
17	var_dump(@strripos("\\\\a", "\\a"));
18
19	$fp = fopen(__FILE__, "r");
20	var_dump(@strripos("", $fp));
21?>
22--EXPECT--
23int(5)
24int(12)
25int(18)
26int(12)
27int(10)
28int(2)
29int(0)
30int(0)
31bool(false)
32bool(false)
33bool(false)
34bool(false)
35int(1)
36bool(false)
37