Home
last modified time | relevance | path

Searched refs:iconv_strrpos (Results 1 – 10 of 10) sorted by relevance

/PHP-5.5/ext/iconv/tests/
H A Diconv_strrpos_error1.phpt2 Test iconv_strrpos() function : error conditions - pass incorrect number of args
6 function_exists('iconv_strrpos') or die("skip iconv_strrpos() is not available in this build");
16 * Pass iconv_strrpos() an incorrect number of arguments
19 echo "*** Testing iconv_strrpos() : error conditions ***\n";
22 //Test iconv_strrpos with one more than the expected number of arguments
28 var_dump( iconv_strrpos($haystack, $needle, $encoding, $extra_arg) );
30 // Testing iconv_strrpos with one less than the expected number of arguments
33 var_dump( iconv_strrpos($haystack) );
38 *** Testing iconv_strrpos() : error conditions ***
40 -- Testing iconv_strrpos() function with more than expected no. of arguments --
[all …]
H A Diconv_strrpos_basic.phpt2 Test iconv_strrpos() function : basic functionality
6 function_exists('iconv_strrpos') or die("skip iconv_strrpos() is not available in this build");
10 /* Prototype : proto int iconv_strrpos(string haystack, string needle [, string charset])
16 * Test basic functionality of iconv_strrpos()
19 echo "*** Testing iconv_strrpos() : basic ***\n";
28 var_dump(iconv_strrpos($string_ascii, b'is', 'ISO-8859-1'));
31 var_dump(iconv_strrpos($string_ascii, b'hello, world'));
35 var_dump(iconv_strrpos($string_mb, $needle1));
39 var_dump(iconv_strrpos($string_mb, $needle2));
44 *** Testing iconv_strrpos() : basic ***
H A Diconv_strrpos_error2.phpt2 Test iconv_strrpos() function : error conditions - pass an unknown encoding
6 function_exists('iconv_strrpos') or die("skip iconv_strrpos() is not available in this build");
10 /* Prototype : proto int iconv_strrpos(string haystack, string needle [, string charset])
16 * Pass iconv_strrpos() an encoding that doesn't exist
19 echo "*** Testing iconv_strrpos() : error conditions ***\n";
26 var_dump(iconv_strrpos($haystack, $needle , $encoding));
31 *** Testing iconv_strrpos() : error conditions ***
33 Notice: iconv_strrpos(): Wrong charset, conversion from `unknown-encoding' to `UCS-4LE' is not allo…
H A Diconv_strrpos_variation3.phpt2 Test iconv_strrpos() function : usage variations - pass different data types as $encoding arg
6 function_exists('iconv_strrpos') or die("skip iconv_strrpos() is not available in this build");
10 /* Prototype : proto int iconv_strrpos(string haystack, string needle [, string charset])
16 * Pass iconv_strrpos() different data types as $encoding argument to test behaviour
20 echo "*** Testing iconv_strrpos() : usage variations ***\n";
94 // loop through each element of $inputs to check the behavior of iconv_strrpos()
98 var_dump( iconv_strrpos($haystack, $needle, $input));
108 *** Testing iconv_strrpos() : usage variations ***
112 Notice: iconv_strrpos(): Wrong charset, conversion from `0' to `UCS-4LE' is not allowed in %s on li…
117 Notice: iconv_strrpos(): Wrong charset, conversion from `1' to `UCS-4LE' is not allowed in %s on li…
[all …]
H A Diconv_strrpos_variation1.phpt2 Test iconv_strrpos() function : usage variations - pass different data types to $haystack arg
6 function_exists('iconv_strrpos') or die("skip iconv_strrpos() is not available in this build");
10 /* Prototype : proto int iconv_strrpos(string haystack, string needle [, string charset])
16 * Pass iconv_strrpos() different data types as $haystack argument to test behaviour
19 echo "*** Testing iconv_strrpos() : usage variations ***\n";
93 // loop through each element of $inputs to check the behavior of iconv_strrpos()
97 var_dump( iconv_strrpos($input, $needle, $encoding));
105 *** Testing iconv_strrpos() : usage variations ***
178 Warning: iconv_strrpos() expects parameter 1 to be string, resource given in %s on line %d
H A Diconv_strrpos_variation2.phpt2 Test iconv_strrpos() function : usage variations - Pass different data types to $needle arg
6 function_exists('iconv_strrpos') or die("skip iconv_strrpos() is not available in this build");
10 /* Prototype : proto int iconv_strrpos(string haystack, string needle [, string charset])
16 * Pass iconv_strrpos() different data types as $needle argument to test behaviour
19 echo "*** Testing iconv_strrpos() : usage variations ***\n";
93 // loop through each element of $inputs to check the behavior of iconv_strrpos()
97 var_dump( iconv_strrpos($haystack, $input, $encoding));
107 *** Testing iconv_strrpos() : usage variations ***
180 Warning: iconv_strrpos() expects parameter 2 to be string, resource given in %s on line %d
H A Diconv_strrpos.phpt2 iconv_strrpos()
21 var_dump(iconv_strrpos($haystk, $needle, $to_charset));
24 var_dump(iconv_strrpos($haystk, $needle));
36 var_dump(iconv_strrpos("string", ""));
37 var_dump(iconv_strrpos("", "string"));
H A Diconv_strrpos-charset-length-cve-2007-4840.phpt2 iconv_strrpos() charset parameter length checks (CVE-2007-4840)
8 var_dump(iconv_strrpos("a", "b", $a));
12 Warning: iconv_strrpos(): Charset parameter exceeds the maximum allowed length of %d characters in …
/PHP-5.5/ext/iconv/
H A Dphp_iconv.h64 PHP_FUNCTION(iconv_strrpos);
H A Diconv.c135 PHP_FE(iconv_strrpos, arginfo_iconv_strrpos)
2109 PHP_FUNCTION(iconv_strrpos) in PHP_FUNCTION() argument

Completed in 33 milliseconds