/PHP-8.3/ext/mbstring/tests/ |
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.phpt | 2 mb_strpos() 25 print mb_strpos($euc_jp, '0', 0, 'EUC-JP') . "\n"; 49 $r = mb_strpos($euc_jp, "\n", 0, 'EUC-JP'); 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"; 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"; [all …]
|
H A D | mb_strpos_variation5.phpt | 2 Test mb_strpos() function : usage variations - Pass different integers as $offset argument 8 * Test how mb_strpos() behaves when passed different integers as $offset argument 15 echo "*** Testing mb_strpos() : usage variations ***\n"; 31 var_dump(mb_strpos($string_ascii, $needle_ascii, $i)); 38 var_dump(mb_strpos($string_mb, $needle_mb, $i, 'UTF-8')); 46 *** Testing mb_strpos() : usage variations *** 50 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 52 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 86 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 88 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) [all …]
|
H A D | mb_strpos_basic.phpt | 2 Test mb_strpos() function : basic functionality 8 * Test basic functionality of mb_strpos with ASCII and multibyte characters 11 echo "*** Testing mb_strpos() : basic functionality***\n"; 20 var_dump(mb_strpos($string_ascii, 'd', 2, 'ISO-8859-1')); 23 var_dump(mb_strpos($string_ascii, '123')); 27 var_dump(mb_strpos($string_mb, $needle1)); 31 var_dump(mb_strpos($string_mb, $needle2)); 36 *** Testing mb_strpos() : basic functionality***
|
H A D | mb_strpos_empty_needle.phpt | 2 Test mb_strpos() function : with empty needle 15 var_dump(mb_strpos($string_ascii, '')); 18 var_dump(mb_strpos($string_ascii, '', 2)); 21 var_dump(mb_strpos($string_ascii, '', -2)); 25 var_dump(mb_strpos($string_ascii, '', 15)); 32 var_dump(mb_strpos($string_ascii, '', -15)); 38 var_dump(mb_strpos($string_mb, '')); 41 var_dump(mb_strpos($string_mb, '', 2)); 44 var_dump(mb_strpos($string_mb, '', -2)); 48 var_dump(mb_strpos($string_mb, '', 150)); [all …]
|
H A D | mb_strpos_error2.phpt | 2 Test mb_strpos() function : error conditions - Pass unknown encoding 8 * Pass an unknown encoding to mb_strpos() to test behaviour 11 echo "*** Testing mb_strpos() : error conditions ***\n"; 18 var_dump( mb_strpos($haystack, $needle, $offset, $encoding) ); 25 *** Testing mb_strpos() : error conditions *** 26 mb_strpos(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
|
H A D | bug43840.phpt | 2 Test mb_strpos() function : mb_strpos bounds check is byte count rather than a character count 8 * mb_strpos bounds check is byte count rather than a character count: 22 var_dump( mb_strpos($string_mb, $needle, $i, 'UTF-8') ); 28 var_dump(mb_strpos('This is na English ta', 'a', $i)); 49 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 51 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) 57 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 61 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 63 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
|
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 | 9 var_dump(mb_strpos("f", "bar", 3)); 14 var_dump(mb_strpos("f", "bar", -3)); 51 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 52 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"; 20 Deprecated: mb_strpos(): Passing null to parameter #3 ($offset) of type int is deprecated in %s on …
|
H A D | mb_substr.phpt | 121 echo "Testing agreement with mb_strpos on invalid UTF-8 string:\n"; 123 * by mb_strpos would not extract the desired part of the string when passed to mb_substr. 126 $pos = mb_strpos($data, "<", 0, "UTF-8"); 217 Testing agreement with mb_strpos on invalid UTF-8 string:
|
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.3/ext/mbstring/ |
H A D | mbstring_arginfo.h | 325 ZEND_FUNCTION(mb_strpos); 420 ZEND_FE(mb_strpos, arginfo_mb_strpos)
|
H A D | mbstring.stub.php | 91 function mb_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): in… function
|
H A D | mbstring.c | 1966 PHP_FUNCTION(mb_strpos) in PHP_FUNCTION() argument
|
/PHP-8.3/ |
H A D | NEWS | 1008 way as other mbstring functions such as mb_strpos. (Alex Dowad)
|