1--TEST--
2stristr() function
3--FILE--
4<?php
5	var_dump(stristr());
6	var_dump(stristr(array(), ""));
7	var_dump(stristr("", array()));
8	var_dump(stristr(array(), array()));
9	var_dump(stristr("tEsT sTrInG", "tEsT"));
10	var_dump(stristr("tEsT sTrInG", "stRiNg"));
11	var_dump(stristr("tEsT sTrInG", "stRiN"));
12	var_dump(stristr("tEsT sTrInG", "t S"));
13	var_dump(stristr("tEsT sTrInG", "g"));
14	var_dump(md5(stristr("te".chr(0)."st", chr(0))));
15	var_dump(@stristr("", ""));
16	var_dump(@stristr("a", ""));
17	var_dump(@stristr("", "a"));
18	var_dump(md5(@stristr("\\\\a\\", "\\a")));
19	var_dump(stristr("tEsT sTrInG", " "));
20?>
21--EXPECTF--
22Warning: stristr() expects at least 2 parameters, 0 given in %s on line %d
23NULL
24
25Warning: stristr() expects parameter 1 to be string, array given in %s on line %d
26NULL
27
28Warning: stristr(): needle is not a string or an integer in %s on line %d
29bool(false)
30
31Warning: stristr() expects parameter 1 to be string, array given in %s on line %d
32NULL
33string(11) "tEsT sTrInG"
34string(6) "sTrInG"
35string(6) "sTrInG"
36string(8) "T sTrInG"
37string(1) "G"
38string(32) "7272696018bdeb2c9a3f8d01fc2a9273"
39bool(false)
40bool(false)
41bool(false)
42string(32) "6ec19f52f0766c463f3bb240f4396913"
43string(7) " sTrInG"
44