Searched refs:iconv_substr (Results 1 – 15 of 15) sorted by relevance
/PHP-8.0/ext/iconv/tests/ |
H A D | iconv_substr_out_of_bounds.phpt | 2 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 D | iconv_substr_basic.phpt | 2 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 D | iconv_substr_error2.phpt | 2 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 D | bug72320.phpt | 2 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 D | iconv_substr-charset-length-cve-2007-4783.phpt | 2 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 D | bug69840.phpt | 2 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 D | iconv_substr.phpt | 2 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 D | bug37773.phpt | 2 Bug #37773 (iconv_substr() gives "Unknown error" when string length = 1") 15 var_dump(iconv_substr('x', 0, 1, 'UTF-8'));
|
H A D | bug79200.phpt | 12 var_dump(iconv_substr('test test', 0 , 9, 'WINDOWS-1258'));
|
/PHP-8.0/ext/iconv/ |
H A D | iconv_arginfo.h | 64 ZEND_FUNCTION(iconv_substr); 77 ZEND_FE(iconv_substr, arginfo_iconv_substr)
|
H A D | iconv.stub.php | 7 function iconv_substr(string $string, int $offset, ?int $length = null, ?string $encoding = null): … function
|
H A D | php_iconv.h | 49 PHP_FUNCTION(iconv_substr);
|
H A D | iconv.c | 1813 PHP_FUNCTION(iconv_substr) in PHP_FUNCTION() argument
|
/PHP-8.0/ext/mbstring/tests/ |
H A D | mbregex_stack_limit2.phpt | 16 …for( $x=0; $x<iconv_strlen( $chars ); $x++ ) $chars_array[] = preg_quote( iconv_substr( $chars, $x…
|
/PHP-8.0/ |
H A D | UPGRADING | 554 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 19 milliseconds