Home
last modified time | relevance | path

Searched refs:iconv_substr (Results 1 – 11 of 11) sorted by relevance

/PHP-7.2/ext/iconv/tests/
H A Diconv_substr_error1.phpt2 Test iconv_substr() function : error conditions - Pass incorrect number of args
6 function_exists('iconv_substr') or die("skip iconv_substr() is not available in this build");
16 * Pass incorrect number of arguments to iconv_substr() to test behaviour
19 echo "*** Testing iconv_substr() : error conditions ***\n";
21 //Test iconv_substr with one more than the expected number of arguments
28 var_dump( iconv_substr($str, $start, $length, $encoding, $extra_arg) );
30 // Testing iconv_substr with one less than the expected number of arguments
33 var_dump( iconv_substr($str) );
38 *** Testing iconv_substr() : error conditions ***
40 -- Testing iconv_substr() function with more than expected no. of arguments --
[all …]
H A Diconv_substr_basic.phpt2 Test iconv_substr() function : basic functionality
6 function_exists('iconv_substr') or die("skip iconv_substr() is not available in this build");
14 /* Prototype : string iconv_substr(string str, int offset, [int length, string charset])
20 * Test Basic Functionality of iconv_substr with ASCII characters and multibyte strings.
23 echo "*** Testing iconv_substr() : basic functionality ***\n";
30 var_dump(bin2hex(iconv_substr($string_ascii, 3)));
33 var_dump(bin2hex(iconv_substr($string_ascii, 3, 5, 'ISO-8859-1')));
36 $result_1 = iconv_substr($string_mb, 2, 7);
40 $result_2 = iconv_substr($string_mb, 2, 7, 'utf-8');
46 *** Testing iconv_substr() : basic functionality ***
H A Diconv_substr_error2.phpt2 Test iconv_substr() function : error conditions - Pass an unknown encoding
6 function_exists('iconv_substr') or die("skip iconv_substr() is not available in this build");
10 /* Prototype : string iconv_substr(string str, int offset, [int length, string charset])
16 * Pass an unknown encoding to iconv_substr() to test behaviour
19 echo "*** Testing iconv_substr() : error conditions ***\n";
26 var_dump( iconv_substr($str, $start, $length, $encoding));
31 *** Testing iconv_substr() : error conditions ***
33 Notice: iconv_substr(): Wrong charset, conversion from `unknown-encoding' to `UCS-4LE' is not allow…
H A Dbug72320.phpt2 Bug #72320 (iconv_substr returns false for empty strings)
9 var_dump(iconv_substr('', 0, 10, 'UTF-8'));
10 var_dump(iconv_substr('foo', 3, 10, 'UTF-8'));
H A Dbug69840.phpt2 Bug #69840 (iconv_substr() doesn't work with UTF-16BE)
5 $str = iconv_substr("a\x00b\x00", 0, 1, 'UTF-16LE');
9 $str = iconv_substr("\x00a\x00b", 0, 1, 'UTF-16BE');
H A Diconv_substr-charset-length-cve-2007-4783.phpt2 iconv_substr() charset parameter length checks (CVE-2007-4783)
9 var_dump(iconv_substr($a, 0, 1, $b));
12 Warning: iconv_substr(): Charset parameter exceeds the maximum allowed length of %d characters in %…
H A Diconv_substr.phpt2 iconv_substr()
19 hexdump(iconv_substr($str, $offset, $len, $charset));
25 var_dump(iconv_substr($str, $offset));
28 var_dump(iconv_substr($str, $offset, $len));
40 var_dump(iconv("ISO-2022-JP", "EUC-JP", iconv_substr(iconv("EUC-JP", "ISO-2022-JP", "����ˤ��� ISO-2…
H A Dbug37773.phpt2 Bug #37773 (iconv_substr() gives "Unknown error" when string length = 1")
15 var_dump(iconv_substr('x', 0, 1, 'UTF-8'));
/PHP-7.2/ext/iconv/
H A Dphp_iconv.h65 PHP_FUNCTION(iconv_substr);
H A Diconv.c133 PHP_FE(iconv_substr, arginfo_iconv_substr)
2103 PHP_FUNCTION(iconv_substr) in PHP_FUNCTION() argument
/PHP-7.2/
H A DNEWS2742 . Fixed bug #72320 (iconv_substr returns false for empty strings). (cmb)

Completed in 23 milliseconds