1--TEST--
2stripos() function test
3--FILE--
4<?php
5	var_dump(stripos("test string", "TEST"));
6	var_dump(stripos("test string", "strIng"));
7	var_dump(stripos("test string", "stRin"));
8	var_dump(stripos("test string", "t S"));
9	var_dump(stripos("test string", "G"));
10	var_dump(stripos("te".chr(0)."st", chr(0)));
11	var_dump(stripos("tEst", "test"));
12	var_dump(stripos("teSt", "test"));
13	var_dump(stripos("", ""));
14	var_dump(stripos("a", ""));
15	var_dump(stripos("", "a"));
16	var_dump(stripos("a", " "));
17	var_dump(stripos("a", "a"));
18	var_dump(stripos("", 1));
19	var_dump(stripos("", false));
20	var_dump(stripos("", true));
21	var_dump(stripos("a", 1));
22	var_dump(stripos("a", false));
23	var_dump(stripos("a", true));
24	var_dump(stripos("1", 1));
25	var_dump(stripos("0", false));
26	var_dump(stripos("1", true));
27	var_dump(stripos("\\\\a", "\\a"));
28
29	echo "Done\n";
30?>
31--EXPECTF--
32int(0)
33int(5)
34int(5)
35int(3)
36int(10)
37int(2)
38int(0)
39int(0)
40bool(false)
41bool(false)
42bool(false)
43bool(false)
44int(0)
45bool(false)
46bool(false)
47bool(false)
48
49Deprecated: stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
50bool(false)
51
52Deprecated: stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
53bool(false)
54
55Deprecated: stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
56bool(false)
57
58Deprecated: stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
59bool(false)
60
61Deprecated: stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
62bool(false)
63
64Deprecated: stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
65bool(false)
66int(1)
67Done
68