Home
last modified time | relevance | path

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

/PHP-8.2/ext/iconv/tests/
H A Diconv_substr_out_of_bounds.phpt2 iconv_substr() with out of bounds offset
8 var_dump(iconv_substr("foo", 3));
9 var_dump(iconv_substr("foo", -3));
10 var_dump(iconv_substr("foo", 4));
11 var_dump(iconv_substr("foo", -4));
12 var_dump(iconv_substr("äöü", 3));
13 var_dump(iconv_substr("äöü", -3));
14 var_dump(iconv_substr("äöü", 4));
15 var_dump(iconv_substr("äöü", -4));
16 var_dump(iconv_substr("foo", 0, 3));
[all …]
H A Diconv_substr_basic.phpt2 Test iconv_substr() function : basic functionality
12 * Test Basic Functionality of iconv_substr with ASCII characters and multibyte strings.
15 echo "*** Testing iconv_substr() : basic functionality ***\n";
22 var_dump(bin2hex(iconv_substr($string_ascii, 3)));
25 var_dump(bin2hex(iconv_substr($string_ascii, 3, 5, 'ISO-8859-1')));
28 $result_1 = iconv_substr($string_mb, 2, 7);
32 $result_2 = iconv_substr($string_mb, 2, 7, 'utf-8');
38 *** Testing iconv_substr() : basic functionality ***
H A Diconv_substr_error2.phpt2 Test iconv_substr() function : error conditions - Pass an unknown encoding
8 * Pass an unknown encoding to iconv_substr() to test behaviour
11 echo "*** Testing iconv_substr() : error conditions ***\n";
18 var_dump( iconv_substr($str, $start, $length, $encoding));
23 *** Testing iconv_substr() : error conditions ***
25 Warning: iconv_substr(): Wrong encoding, conversion from "unknown-encoding" to "UCS-4LE" is not all…
H A Dbug72320.phpt2 Bug #72320 (iconv_substr returns false for empty strings)
7 var_dump(iconv_substr('', 0, 10, 'UTF-8'));
8 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(): Encoding parameter exceeds the maximum allowed length of 64 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));
41 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")
16 var_dump(iconv_substr('x', 0, 1, 'UTF-8'));
H A Dbug79200.phpt10 var_dump(iconv_substr('test test', 0 , 9, 'WINDOWS-1258'));
/PHP-8.2/ext/iconv/
H A Diconv_arginfo.h64 ZEND_FUNCTION(iconv_substr);
77 ZEND_FE(iconv_substr, arginfo_iconv_substr)
H A Diconv.stub.php29 function iconv_substr(string $string, int $offset, ?int $length = null, ?string $encoding = null): … function
H A Diconv.c1823 PHP_FUNCTION(iconv_substr) in PHP_FUNCTION() argument
/PHP-8.2/ext/mbstring/tests/
H A Dmbregex_stack_limit2.phpt17 …for( $x=0; $x<iconv_strlen( $chars ); $x++ ) $chars_array[] = preg_quote( iconv_substr( $chars, $x…

Completed in 21 milliseconds