Home
last modified time | relevance | path

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

/php-src/ext/mbstring/tests/
H A Dmb_strripos_variation5_Bug45923.phpt2 Test mb_strripos() function : usage variations - Pass different integers as $offset argument
8 * Test how mb_strripos() behaves when passed different integers as $offset argument
15 echo "*** Testing mb_strripos() : usage variations ***\n";
25 * mb_strripos should not be able to accept negative values as $offset.
32 var_dump(mb_strripos($string_ascii, $needle_ascii, $i));
39 var_dump(mb_strripos($string_mb, $needle_mb, $i, 'UTF-8'));
47 *** Testing mb_strripos() : usage variations ***
75 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
77 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
81 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
[all …]
H A Dmb_strripos_empty_needle.phpt2 Test mb_strripos() function : with empty needle
15 var_dump(mb_strripos($string_ascii, ''));
18 var_dump(mb_strripos($string_ascii, '', 2));
21 var_dump(mb_strripos($string_ascii, '', -2));
25 var_dump(mb_strripos($string_ascii, '', 15));
32 var_dump(mb_strripos($string_ascii, '', -15));
39 var_dump(mb_strripos($string_mb, ''));
42 var_dump(mb_strripos($string_mb, '', 2));
45 var_dump(mb_strripos($string_mb, '', -2));
49 var_dump(mb_strripos($string_mb, '', 150));
[all …]
H A Dmb_strripos_error2.phpt2 Test mb_strripos() function : error conditions - Pass unknown encoding
8 * Pass an unknown encoding to mb_strripos() to test behaviour
11 echo "*** Testing mb_strripos() : error conditions ***\n";
18 var_dump( mb_strripos($haystack, $needle, $offset, $encoding) );
25 *** Testing mb_strripos() : error conditions ***
26 mb_strripos(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strripos_basic2.phpt2 Test mb_strripos() function : basic functionality
8 * Test basic functionality of mb_strripos with ASCII and multibyte characters
11 echo "*** Testing mb_strripos() : basic functionality***\n";
50 var_dump(mb_strripos($haystack, $needle));
51 var_dump(mb_strripos($haystack, $needle, 14));
58 var_dump(mb_strripos($haystack, $needle));
59 var_dump(mb_strripos($haystack, $needle, 12));
66 *** Testing mb_strripos() : basic functionality***
H A Dgh11217.phpt2 GH-11217: Segfault in mb_strrpos/mb_strripos with ASCII encoding and negative offset
8 var_dump(mb_strripos('foo', 'foo', -1, 'ASCII'));
H A Dmb_strpos_offset_errors.phpt39 var_dump(mb_strripos("f", "bar", 3));
44 var_dump(mb_strripos("f", "bar", -3));
57 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
58 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dmb_strripos_basic.phpt2 Test mb_strripos() function : basic functionality
8 * Test basic functionality of mb_strripos with ASCII and multibyte characters
11 echo "*** Testing mb_strripos() : basic functionality***\n";
72 var_dump(mb_strripos($haystack, $needle));
84 var_dump(mb_strripos($haystack, $needle));
92 *** Testing mb_strripos() : basic functionality***
H A Dbug45923.phpt31 section('mb_strripos', "●○◆ ●○◆ ●○◆", "●○◆");
195 ------- mb_strripos -----------
208 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
216 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dmb_str_functions_opt-parameter.phpt10 echo mb_strripos('abb', 'B', null, 'UTF-8') . "\n";
29 Deprecated: mb_strripos(): Passing null to parameter #3 ($offset) of type int is deprecated in %s o…
H A Dmb_str_unknown_encoding.phpt96 mb_strripos('coudenys', 'cou', 0, 'UTF-0');
159 mb_strripos(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
/php-src/ext/mbstring/
H A Dmbstring_arginfo.h311 ZEND_FUNCTION(mb_strripos);
380 ZEND_FE(mb_strripos, arginfo_mb_strripos)
H A Dmbstring.stub.php97 function mb_strripos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): … function
H A Dmbstring.c2061 PHP_FUNCTION(mb_strripos) in PHP_FUNCTION() argument

Completed in 28 milliseconds