/PHP-8.0/ext/mbstring/tests/ |
H A D | mb_strpos.phpt | 2 mb_strpos() 59 print mb_strpos($euc_jp, '0', 0) . "\n"; 60 print mb_strpos($euc_jp, 3, 0) . "\n"; 61 print mb_strpos($euc_jp, 0, 0) . "\n"; 63 $r = mb_strpos($euc_jp, '�ڹ��', 0); 65 $r = mb_strpos($euc_jp, "\n", 0); 74 print mb_strpos($euc_jp, '0') . "\n"; 75 print mb_strpos($euc_jp, 3) . "\n"; 76 print mb_strpos($euc_jp, 0) . "\n"; 78 $r = mb_strpos($euc_jp, '�ڹ��'); [all …]
|
H A D | mb_strpos_invalid_offset.phpt | 2 mb_strpos() with invalid offsets 21 var_dump( mb_strpos($string, '日本語', 44)); 27 var_dump( mb_strpos($string, '日本語', 50)); 33 var_dump( mb_strpos($string, '0', 50)); 39 var_dump(mb_strpos($string, 3, 50)); 45 var_dump(mb_strpos($string, 0, 50)); 51 var_dump(mb_strpos($string, '日本語', -50)); 57 var_dump(mb_strpos($string, '0', -50)); 63 var_dump(mb_strpos($string, 3, -50)); 69 var_dump(mb_strpos($string, 0, -50)); [all …]
|
H A D | mb_strpos_basic.phpt | 2 Test mb_strpos() function : basic functionality 6 function_exists('mb_strpos') or die("skip mb_strpos() is not available in this build"); 11 * Test basic functionality of mb_strpos with ASCII and multibyte characters 14 echo "*** Testing mb_strpos() : basic functionality***\n"; 23 var_dump(mb_strpos($string_ascii, 'd', 2, 'ISO-8859-1')); 26 var_dump(mb_strpos($string_ascii, '123')); 30 var_dump(mb_strpos($string_mb, $needle1)); 34 var_dump(mb_strpos($string_mb, $needle2)); 39 *** Testing mb_strpos() : basic functionality***
|
H A D | mb_strpos_error2.phpt | 2 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"); 11 * Pass an unknown encoding to mb_strpos() to test behaviour 14 echo "*** Testing mb_strpos() : error conditions ***\n"; 21 var_dump( mb_strpos($haystack, $needle, $offset, $encoding) ); 28 *** Testing mb_strpos() : error conditions *** 29 mb_strpos(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
|
H A D | mb_strpos_variation5.phpt | 2 Test mb_strpos() function : usage variations - Pass different integers as $offset argument 6 function_exists('mb_strpos') or die("skip mb_strpos() is not available in this build"); 11 * Test how mb_strpos() behaves when passed different integers as $offset argument 18 echo "*** Testing mb_strpos() : usage variations ***\n"; 34 var_dump(mb_strpos($string_ascii, $needle_ascii, $i)); 41 var_dump(mb_strpos($string_mb, $needle_mb, $i, 'UTF-8')); 49 *** Testing mb_strpos() : usage variations *** 53 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 55 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 89 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) [all …]
|
H A D | mb_strpos_empty_needle.phpt | 2 Test mb_strpos() function : with empty needle 6 function_exists('mb_strpos') or die("skip mb_strpos() is not available in this build"); 18 var_dump(mb_strpos($string_ascii, '')); 21 var_dump(mb_strpos($string_ascii, '', 2)); 24 var_dump(mb_strpos($string_ascii, '', -2)); 28 var_dump(mb_strpos($string_ascii, '', 15)); 41 var_dump(mb_strpos($string_mb, '')); 44 var_dump(mb_strpos($string_mb, '', 2)); 47 var_dump(mb_strpos($string_mb, '', -2)); 51 var_dump(mb_strpos($string_mb, '', 150)); [all …]
|
H A D | bug43840.phpt | 2 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"); 11 * mb_strpos bounds check is byte count rather than a character count: 25 var_dump( mb_strpos($string_mb, $needle, $i, 'UTF-8') ); 31 var_dump(mb_strpos('This is na English ta', 'a', $i)); 52 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 54 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 58 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 60 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 64 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) [all …]
|
H A D | bug77025.phpt | 2 Bug #77025: mb_strpos throws Unknown encoding or conversion error 8 var_dump(mb_strpos('Hello', 'e', 0, '8bit'));
|
H A D | mb_strpos_offset_errors.phpt | 7 var_dump(mb_strpos("f", "bar", 3)); 12 var_dump(mb_strpos("f", "bar", -3)); 49 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 50 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
|
H A D | bug45923.phpt | 22 section('mb_strpos' , "●○◆ ●○◆ ●○◆", "●○◆"); 57 ------- mb_strpos ----------- 70 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 78 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
|
H A D | mb_str_functions_opt-parameter.phpt | 7 echo mb_strpos('abb', 'b', null, 'UTF-8') . "\n";
|
H A D | mb_str_unknown_encoding.phpt | 78 mb_strpos('coudenys', 'cou', 0, 'UTF-0'); 156 mb_strpos(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
|
/PHP-8.0/ext/mbstring/ |
H A D | mbstring_arginfo.h | 317 ZEND_FUNCTION(mb_strpos); 411 ZEND_FE(mb_strpos, arginfo_mb_strpos)
|
H A D | mbstring.stub.php | 28 function mb_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): in… function
|
H A D | mbstring.c | 1865 PHP_FUNCTION(mb_strpos) in PHP_FUNCTION() argument
|
/PHP-8.0/ |
H A D | UPGRADING | 384 . The needle argument for mb_strpos(), mb_strrpos(), mb_stripos(),
|