Home
last modified time | relevance | path

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

/PHP-7.4/ext/mbstring/tests/
H A Dmb_strpos.phpt2 mb_strpos()
105 print mb_strpos($euc_jp, 3, 0) . "\n";
106 print mb_strpos($euc_jp, 0, 0) . "\n";
108 $r = mb_strpos($euc_jp, '�ڹ��', 0);
110 $r = mb_strpos($euc_jp, "\n", 0);
119 print mb_strpos($euc_jp, '0') . "\n";
120 print mb_strpos($euc_jp, 3) . "\n";
121 print mb_strpos($euc_jp, 0) . "\n";
123 $r = mb_strpos($euc_jp, '�ڹ��');
125 $r = mb_strpos($euc_jp, "\n");
[all …]
H A Dmb_strpos_basic.phpt2 Test mb_strpos() function : basic functionality
6 function_exists('mb_strpos') or die("skip mb_strpos() is not available in this build");
10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]])
16 * Test basic functionality of mb_strpos with ASCII and multibyte characters
19 echo "*** Testing mb_strpos() : basic functionality***\n";
28 var_dump(mb_strpos($string_ascii, 'd', 2, 'ISO-8859-1'));
31 var_dump(mb_strpos($string_ascii, '123'));
35 var_dump(mb_strpos($string_mb, $needle1));
39 var_dump(mb_strpos($string_mb, $needle2));
44 *** Testing mb_strpos() : basic functionality***
H A Dmb_strpos_error2.phpt2 Test mb_strpos() function : error conditions - Pass unknown encoding
6 function_exists('mb_strpos') or die("skip mb_strpos() is not available in this build");
10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]])
16 * Pass an unknown encoding to mb_strpos() to test behaviour
19 echo "*** Testing mb_strpos() : error conditions ***\n";
25 var_dump( mb_strpos($haystack, $needle, $offset, $encoding) );
30 *** Testing mb_strpos() : error conditions ***
32 Warning: mb_strpos(): Unknown encoding "unknown-encoding" in %s on line %d
H A Dmb_strpos_variation5.phpt6 function_exists('mb_strpos') or die("skip mb_strpos() is not available in this build");
23 echo "*** Testing mb_strpos() : usage variations ***\n";
33 * mb_strpos should not be able to accept negative values as $offset.
39 var_dump(mb_strpos($string_ascii, $needle_ascii, $i));
41 var_dump(mb_strpos($string_mb, $needle_mb, $i, 'UTF-8'));
47 *** Testing mb_strpos() : usage variations ***
52 Warning: mb_strpos(): Offset not contained in string in %s on line %d
56 Warning: mb_strpos(): Offset not contained in string in %s on line %d
92 Warning: mb_strpos(): Offset not contained in string in %s on line %d
96 Warning: mb_strpos(): Offset not contained in string in %s on line %d
[all …]
H A Dbug43840.phpt2 Test mb_strpos() function : mb_strpos bounds check is byte count rather than a character count
6 function_exists('mb_strpos') or die("skip mb_strpos() is not available in this build");
16 * mb_strpos bounds check is byte count rather than a character count:
29 var_dump( mb_strpos($string_mb, $needle, $i, 'UTF-8') );
31 var_dump(mb_strpos('This is na English ta', 'a', $i));
50 Warning: mb_strpos(): Offset not contained in string in %s on line %d
54 Warning: mb_strpos(): Offset not contained in string in %s on line %d
60 Warning: mb_strpos(): Offset not contained in string in %s on line %d
64 Warning: mb_strpos(): Offset not contained in string in %s on line %d
70 Warning: mb_strpos(): Offset not contained in string in %s on line %d
[all …]
H A Dbug77025.phpt2 Bug #77025: mb_strpos throws Unknown encoding or conversion error
8 var_dump(mb_strpos('Hello', 'e', 0, '8bit'));
H A Dmb_get_info.phpt44 string(9) "mb_strpos"
108 string(9) "mb_strpos"
134 string(9) "mb_strpos"
H A Dbug45923.phpt18 section('mb_strpos' , "●○◆ ●○◆ ●○◆", "●○◆");
57 ------- mb_strpos -----------
71 Warning: mb_strpos(): Offset not contained in string in %s on line %d
81 Warning: mb_strpos(): Offset not contained in string in %s on line %d
H A Dmb_str_functions_opt-parameter.phpt7 echo mb_strpos('abb', 'b', null, 'UTF-8') . "\n";
H A Dmb_str_unknown_encoding.phpt21 mb_strpos('coudenys', 'cou', 0, 'UTF-0');
56 Warning: mb_strpos(): Unknown encoding "UTF-0" in %s on line %d
/PHP-7.4/ext/mbstring/
H A Dmbstring.h83 PHP_FUNCTION(mb_strpos);
H A Dmbstring.c552 PHP_FE(mb_strpos, arginfo_mb_strpos)
2517 PHP_FUNCTION(mb_strpos) in PHP_FUNCTION() argument
/PHP-7.4/
H A DNEWS2659 . Fixed bug #77025 (mb_strpos throws Unknown encoding or conversion error).

Completed in 52 milliseconds