Home
last modified time | relevance | path

Searched refs:mb_stristr (Results 1 – 13 of 13) sorted by relevance

/PHP-5.6/ext/mbstring/tests/
H A Dmb_stristr_error1.phpt2 Test mb_stristr() function : error conditions
6 function_exists('mb_stristr') or die("skip mb_stristr() is not available in this build");
16 echo "*** Testing mb_stristr() : error conditions ***\n";
19 //Test mb_stristr with one more than the expected number of arguments
26 var_dump( mb_stristr($haystack, $needle, $part, $encoding, $extra_arg) );
28 // Testing mb_stristr with one less than the expected number of arguments
31 var_dump( mb_stristr($haystack) );
36 *** Testing mb_stristr() : error conditions ***
38 -- Testing mb_stristr() function with more than expected no. of arguments --
40 Warning: mb_stristr() expects at most 4 parameters, 5 given in %s on line %d
[all …]
H A Dmb_stristr_variation5.phpt2 Test mb_stristr() function : usage variation - multiple needles
6 function_exists('mb_stristr') or die("skip mb_stristr() is not available in this build");
16 echo "*** Testing mb_stristr() : basic functionality ***\n";
34 var_dump(bin2hex(mb_stristr($string_ascii, $needle_ascii_upper, true)));
42 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_upper, false)));
43 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_upper, true)));
44 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_lower, false)));
45 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_lower, true)));
46 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_mixed, false)));
47 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_mixed, true)));
[all …]
H A Dmb_stristr_variation4.phpt6 function_exists('mb_stristr') or die("skip mb_stristr() is not available in this build");
16 echo "*** Testing mb_stristr() : usage variation ***\n";
122 *** Testing mb_stristr() : usage variation ***
125 Error: 2 - mb_stristr(): Unknown encoding "0", %s(%d)
129 Error: 2 - mb_stristr(): Unknown encoding "1", %s(%d)
177 Error: 2 - mb_stristr(): Unknown encoding "", %s(%d)
181 Error: 2 - mb_stristr(): Unknown encoding "", %s(%d)
189 Error: 2 - mb_stristr(): Unknown encoding "", %s(%d)
197 Error: 2 - mb_stristr(): Unknown encoding "", %s(%d)
201 Error: 2 - mb_stristr(): Unknown encoding "", %s(%d)
[all …]
H A Dmb_stristr_error2.phpt2 Test mb_stristr() function : error conditions
6 function_exists('mb_stristr') or die("skip mb_stristr() is not available in this build");
10 /* Prototype : string mb_stristr(string haystack, string needle[, bool part[, string encoding]])
16 echo "*** Testing mb_stristr() : error conditions ***\n";
19 echo "\n-- Testing mb_stristr() with unknown encoding --\n";
24 var_dump( mb_stristr($haystack, $needle, $part, $encoding) );
29 *** Testing mb_stristr() : error conditions ***
31 -- Testing mb_stristr() with unknown encoding --
33 Warning: mb_stristr(): Unknown encoding "unknown-encoding" in %s on line %d
H A Dmb_stristr_basic.phpt2 Test mb_stristr() function : basic functionality
6 function_exists('mb_stristr') or die("skip mb_stristr() is not available in this build");
16 echo "*** Testing mb_stristr() : basic functionality ***\n";
33 var_dump(bin2hex(mb_stristr($string_ascii, $needle_ascii_lower)));
34 var_dump(bin2hex(mb_stristr($string_ascii, $needle_ascii_mixed, true)));
38 var_dump(mb_stristr($string_ascii, '123'));
41 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_upper)));
42 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_lower, false, 'utf-8')));
43 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_mixed, true)));
48 var_dump(mb_stristr($string_mb, $needle2));
[all …]
H A Dmb_stristr_variation2.phpt6 function_exists('mb_stristr') or die("skip mb_stristr() is not available in this build");
16 echo "*** Testing mb_stristr() : usage variation ***\n";
122 *** Testing mb_stristr() : usage variation ***
168 Error: 2 - mb_stristr(): Empty delimiter, %s(%d)
172 Error: 2 - mb_stristr(): Empty delimiter, %s(%d)
179 Error: 2 - mb_stristr(): Empty delimiter, %s(%d)
186 Error: 2 - mb_stristr(): Empty delimiter, %s(%d)
190 Error: 2 - mb_stristr(): Empty delimiter, %s(%d)
194 Error: 2 - mb_stristr(): Empty delimiter, %s(%d)
205 Error: 2 - mb_stristr(): Empty delimiter, %s(%d)
[all …]
H A Dmb_stristr_variation1.phpt2 Test mb_stristr() function : usage variation - various haystacks, needle won't be found
6 function_exists('mb_stristr') or die("skip mb_stristr() is not available in this build");
16 echo "*** Testing mb_stristr() : usage variation ***\n";
114 var_dump( mb_stristr($value, $needle, $part, $encoding) );
122 *** Testing mb_stristr() : usage variation ***
152 Error: 2 - mb_stristr() expects parameter 1 to be string, array given, %s(%d)
156 Error: 2 - mb_stristr() expects parameter 1 to be string, array given, %s(%d)
160 Error: 2 - mb_stristr() expects parameter 1 to be string, array given, %s(%d)
164 Error: 2 - mb_stristr() expects parameter 1 to be string, array given, %s(%d)
195 Error: 2 - mb_stristr() expects parameter 1 to be string, object given, %s(%d)
[all …]
H A Dmb_stristr_variation3.phpt2 Test mb_stristr() function : usage variation - different values for part
6 function_exists('mb_stristr') or die("skip mb_stristr() is not available in this build");
16 echo "*** Testing mb_stristr() : usage variation ***\n";
120 $res = mb_stristr($haystack, $needle, $value, $encoding);
134 *** Testing mb_stristr() : usage variation ***
164 Error: 2 - mb_stristr() expects parameter 3 to be boolean, array given, %s(%d)
168 Error: 2 - mb_stristr() expects parameter 3 to be boolean, array given, %s(%d)
172 Error: 2 - mb_stristr() expects parameter 3 to be boolean, array given, %s(%d)
176 Error: 2 - mb_stristr() expects parameter 3 to be boolean, array given, %s(%d)
216 Error: 2 - mb_stristr() expects parameter 3 to be boolean, object given, %s(%d)
[all …]
H A Dmb_get_info.phpt55 string(10) "mb_stristr"
119 string(10) "mb_stristr"
145 string(10) "mb_stristr"
H A Dmb_str_functions_opt-parameter.phpt13 echo mb_stristr('foobarbaz', 'BA', null, 'UTF-8') . "\n";
/PHP-5.6/ext/mbstring/
H A Dmbstring.h110 PHP_FUNCTION(mb_stristr);
H A Dmbstring.c546 PHP_FE(mb_stristr, arginfo_mb_stristr)
2582 PHP_FUNCTION(mb_stristr) in PHP_FUNCTION() argument
/PHP-5.6/
H A DNEWS7770 - Fixed bug #46763 (mb_stristr() wrong output when needle does not exist).

Completed in 266 milliseconds