Home
last modified time | relevance | path

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

/PHP-7.4/ext/iconv/tests/
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 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 Dbug69840.phpt2 Bug #69840 (iconv_substr() doesn't work with UTF-16BE)
7 $str = iconv_substr("a\x00b\x00", 0, 1, 'UTF-16LE');
11 $str = iconv_substr("\x00a\x00b", 0, 1, 'UTF-16BE');
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'));
H A Dbug79200.phpt12 var_dump(iconv_substr('test test', 0 , 9, 'WINDOWS-1258'));
/PHP-7.4/ext/iconv/
H A Dphp_iconv.h63 PHP_FUNCTION(iconv_substr);
H A Diconv.c128 PHP_FE(iconv_substr, arginfo_iconv_substr)
2096 PHP_FUNCTION(iconv_substr) in PHP_FUNCTION() argument
/PHP-7.4/ext/mbstring/tests/
H A Dmbregex_stack_limit2.phpt16 …for( $x=0; $x<iconv_strlen( $chars ); $x++ ) $chars_array[] = preg_quote( iconv_substr( $chars, $x…

Completed in 37 milliseconds