Home
last modified time | relevance | path

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

/PHP-8.0/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
6 function_exists('iconv_substr') or die("skip iconv_substr() is not available in this build");
15 * Test Basic Functionality of iconv_substr with ASCII characters and multibyte strings.
18 echo "*** Testing iconv_substr() : basic functionality ***\n";
25 var_dump(bin2hex(iconv_substr($string_ascii, 3)));
28 var_dump(bin2hex(iconv_substr($string_ascii, 3, 5, 'ISO-8859-1')));
31 $result_1 = iconv_substr($string_mb, 2, 7);
35 $result_2 = iconv_substr($string_mb, 2, 7, 'utf-8');
41 *** 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");
11 * Pass an unknown encoding to iconv_substr() to test behaviour
14 echo "*** Testing iconv_substr() : error conditions ***\n";
21 var_dump( iconv_substr($str, $start, $length, $encoding));
26 *** Testing iconv_substr() : error conditions ***
28 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)
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(): 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")
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-8.0/ext/iconv/
H A Diconv_arginfo.h64 ZEND_FUNCTION(iconv_substr);
77 ZEND_FE(iconv_substr, arginfo_iconv_substr)
H A Diconv.stub.php7 function iconv_substr(string $string, int $offset, ?int $length = null, ?string $encoding = null): … function
H A Dphp_iconv.h49 PHP_FUNCTION(iconv_substr);
H A Diconv.c1813 PHP_FUNCTION(iconv_substr) in PHP_FUNCTION() argument
/PHP-8.0/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…
/PHP-8.0/
H A DUPGRADING554 iconv_substr() can now be null. Null values will behave as if no length
628 . substr(), mb_substr(), iconv_substr() and grapheme_substr() now consistently

Completed in 28 milliseconds