/PHP-8.0/ext/mbstring/tests/ |
H A D | bug48645.phpt | 2 Bug #48645 (mb_convert_encoding() doesn't understand hexadecimal html-entities) 7 var_dump(bin2hex(mb_convert_encoding("�", "UTF-8", "HTML-ENTITIES"))); 8 var_dump(bin2hex(mb_convert_encoding("", "UTF-8", "HTML-ENTITIES"))); 9 var_dump(bin2hex(mb_convert_encoding("", "UTF-8", "HTML-ENTITIES"))); 10 var_dump(bin2hex(mb_convert_encoding("", "UTF-8", "HTML-ENTITIES"))); 11 var_dump(bin2hex(mb_convert_encoding("", "UTF-8", "HTML-ENTITIES"))); 12 var_dump(bin2hex(mb_convert_encoding("", "UTF-8", "HTML-ENTITIES"))); 13 var_dump(bin2hex(mb_convert_encoding("", "UTF-8", "HTML-ENTITIES"))); 14 var_dump(bin2hex(mb_convert_encoding("", "UTF-8", "HTML-ENTITIES"))); 15 var_dump(bin2hex(mb_convert_encoding("", "UTF-8", "HTML-ENTITIES"))); [all …]
|
H A D | pictogram1.phpt | 10 var_dump(bin2hex(mb_convert_encoding("\xf8\x9f", "UCS-4BE", "SJIS-Mobile#DOCOMO"))); 11 var_dump(bin2hex(mb_convert_encoding("\xf6\x60", "UCS-4BE", "SJIS-Mobile#KDDI"))); 12 var_dump(bin2hex(mb_convert_encoding("\xf9\x8b", "UCS-4BE", "SJIS-Mobile#SOFTBANK"))); 14 var_dump(bin2hex(mb_convert_encoding("\xf9\xe6", "UCS-4BE", "SJIS-Mobile#DOCOMO"))); 15 var_dump(bin2hex(mb_convert_encoding("\xf6\xec", "UCS-4BE", "SJIS-Mobile#KDDI"))); 16 var_dump(bin2hex(mb_convert_encoding("\xf7\x50", "UCS-4BE", "SJIS-Mobile#SOFTBANK"))); 18 var_dump(bin2hex(mb_convert_encoding("\xf9\x85", "UCS-4BE", "SJIS-Mobile#DOCOMO"))); 19 var_dump(bin2hex(mb_convert_encoding("\xf4\x89", "UCS-4BE", "SJIS-Mobile#KDDI"))); 20 var_dump(bin2hex(mb_convert_encoding("\xf7\xb0", "UCS-4BE", "SJIS-Mobile#SOFTBANK"))); 22 var_dump(bin2hex(mb_convert_encoding("\xf3\xd2", "UCS-4BE", "SJIS-Mobile#KDDI"))); [all …]
|
H A D | mb_convert_encoding_basic.phpt | 2 Test mb_convert_encoding() function : basic functionality 6 function_exists('mb_convert_encoding') or die("skip mb_convert_encoding() is not available in this … 11 * Test basic functionality of mb_convert_encoding() 14 echo "*** Testing mb_convert_encoding() : basic functionality ***\n"; 26 var_dump(base64_encode(mb_convert_encoding($sjis_string, 'JIS', 'SJIS'))); 28 var_dump(base64_encode(mb_convert_encoding($utf8_string, 'JIS', 'UTF-8'))); 34 var_dump(base64_encode(mb_convert_encoding($sjis_string, 'EUC-JP', 'SJIS'))); 35 var_dump(base64_encode(mb_convert_encoding($jis_string, 'EUC-JP', 'JIS'))); 42 var_dump(base64_encode(mb_convert_encoding($jis_string, 'SJIS', 'JIS'))); 51 var_dump(base64_encode(mb_convert_encoding($jis_string, 'UTF-8', 'JIS'))); [all …]
|
H A D | mb_convert_encoding_array2.phpt | 2 Test mb_convert_encoding() function : Circular references 6 function_exists('mb_convert_encoding') or die("skip mb_convert_encoding() is not available in this … 11 * Test basic functionality of mb_convert_encoding() 14 echo "*** Testing mb_convert_encoding() : Circular references ***\n"; 50 var_dump(base64_encode_array(mb_convert_encoding($sjis_string, 'JIS', 'SJIS'))); 52 var_dump(base64_encode_array(mb_convert_encoding($utf8_string, 'JIS', 'UTF-8'))); 59 var_dump(base64_encode_array(mb_convert_encoding($jis_string, 'EUC-JP', 'JIS'))); 66 var_dump(base64_encode_array(mb_convert_encoding($jis_string, 'SJIS', 'JIS'))); 68 var_dump(base64_encode_array(mb_convert_encoding($utf8_string, 'SJIS', 'UTF-8'))); 75 var_dump(base64_encode_array(mb_convert_encoding($jis_string, 'UTF-8', 'JIS'))); [all …]
|
H A D | mb_convert_encoding_stateful.phpt | 2 mb_convert_encoding() with stateful encodings 11 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b24402121"), "UTF-8", "ISO-2022-JP")), "\n"; 12 echo bin2hex(mb_convert_encoding(pack("H*", "1b24421b24422121"), "UTF-8", "ISO-2022-JP")), "\n"; 13 echo bin2hex(mb_convert_encoding(pack("H*", "1b28421b284261626364"), "UTF-8", "ISO-2022-JP")), "\n"; 14 echo bin2hex(mb_convert_encoding(pack("H*", "1b284a1b284a61626364"), "UTF-8", "ISO-2022-JP")), "\n"; 15 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b284261626364"), "UTF-8", "ISO-2022-JP")), "\n"; 16 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b284a61626364"), "UTF-8", "ISO-2022-JP")), "\n"; 17 echo bin2hex(mb_convert_encoding(pack("H*", "1b24421b284261626364"), "UTF-8", "ISO-2022-JP")), "\n"; 18 echo bin2hex(mb_convert_encoding(pack("H*", "1b24421b284a61626364"), "UTF-8", "ISO-2022-JP")), "\n"; 20 echo bin2hex(mb_convert_encoding(pack("H*", "1b2429430e0f61626364"), "UTF-8", "ISO-2022-KR")), "\n"; [all …]
|
H A D | mb_convert_encoding_empty_encoding_list.phpt | 2 Test mb_convert_encoding() function : empty encoding list 6 function_exists('mb_convert_encoding') or die("skip mb_convert_encoding() is not available in this … 14 var_dump( mb_convert_encoding($string, 'UTF-8', '')); 19 var_dump( mb_convert_encoding($string, 'UTF-8', [])); 26 mb_convert_encoding(): Argument #3 ($from_encoding) must specify at least one encoding 27 mb_convert_encoding(): Argument #3 ($from_encoding) must specify at least one encoding
|
H A D | bug79149.phpt | 2 Bug #79149 (SEGV in mb_convert_encoding with non-string encodings) 10 var_dump(mb_convert_encoding("", "UTF-8", [0])); 15 var_dump(mb_convert_encoding('foo', 'UTF-8', array(['bar'], ['baz']))); 20 var_dump(mb_convert_encoding('foo', 'UTF-8', array("foo\0bar"))); 27 mb_convert_encoding(): Argument #3 ($from_encoding) contains invalid encoding "0" 30 mb_convert_encoding(): Argument #3 ($from_encoding) contains invalid encoding "Array" 31 mb_convert_encoding(): Argument #3 ($from_encoding) contains invalid encoding "foo"
|
H A D | mb_convert_encoding.phpt | 2 mb_convert_encoding() 23 $s = mb_convert_encoding($s, 'EUC-JP', 'SJIS'); 27 $s = mb_convert_encoding($s, 'EUC-JP', 'JIS'); 44 $s = mb_convert_encoding($s, 'EUC-JP', $a); 48 $s = mb_convert_encoding($s, 'SJIS', $a); 52 $s = mb_convert_encoding($s, 'JIS', $a); 61 $s = mb_convert_encoding($s, 'EUC-JP', $a); 65 $s = mb_convert_encoding($s, 'SJIS', $a); 69 $s = mb_convert_encoding($s, 'JIS', $a); 92 $s = mb_convert_encoding(1234, 'EUC-JP'); [all …]
|
H A D | mb_convert_encoding_array.phpt | 2 Test mb_convert_encoding() function : array functionality 6 function_exists('mb_convert_encoding') or die("skip mb_convert_encoding() is not available in this … 11 * Test basic functionality of mb_convert_encoding() 14 echo "*** Testing mb_convert_encoding() : array functionality ***\n"; 38 var_dump(base64_encode_array(mb_convert_encoding($sjis_string, 'JIS', 'SJIS'))); 40 var_dump(base64_encode_array(mb_convert_encoding($utf8_string, 'JIS', 'UTF-8'))); 47 var_dump(base64_encode_array(mb_convert_encoding($jis_string, 'EUC-JP', 'JIS'))); 54 var_dump(base64_encode_array(mb_convert_encoding($jis_string, 'SJIS', 'JIS'))); 56 var_dump(base64_encode_array(mb_convert_encoding($utf8_string, 'SJIS', 'UTF-8'))); 63 var_dump(base64_encode_array(mb_convert_encoding($jis_string, 'UTF-8', 'JIS'))); [all …]
|
H A D | bug49528.phpt | 7 var_dump(bin2hex(mb_convert_encoding("\xff\xfe\x01\x02\x03\x04", "UCS-2BE", "UTF-16"))); 8 var_dump(bin2hex(mb_convert_encoding("\xfe\xff\x01\x02\x03\x04", "UCS-2BE", "UTF-16"))); 9 var_dump(bin2hex(mb_convert_encoding("\xff\xfe\xff\xfe\x01\x02\x03\x04", "UCS-2BE", "UTF-16"))); 10 var_dump(bin2hex(mb_convert_encoding("\xff\xfe\xfe\xff\x01\x02\x03\x04", "UCS-2BE", "UTF-16"))); 11 var_dump(bin2hex(mb_convert_encoding("\xfe\xff\xff\xfe\x01\x02\x03\x04", "UCS-2BE", "UTF-16"))); 12 var_dump(bin2hex(mb_convert_encoding("\xfe\xff\xfe\xff\x01\x02\x03\x04", "UCS-2BE", "UTF-16")));
|
H A D | bug69086.phpt | 2 Request #69086 (enhancement for mb_convert_encoding) 8 var_dump("?" === mb_convert_encoding("\x80", "Shift_JIS", "EUC-JP")); 10 var_dump("\x00\x00\xff\xfd" === mb_convert_encoding("\x80", "UCS-4BE", "UTF-8")); 14 var_dump("\u{fffd}" === mb_convert_encoding("\x80", "UTF-8", "EUC-JP-2004"));
|
H A D | mb_substitute_character_variation2.phpt | 14 var_dump(bin2hex(mb_convert_encoding($string_mb, "ISO-8859-1", "UTF-8"))); 17 var_dump(bin2hex(mb_convert_encoding($string_mb, "ISO-8859-1", "UTF-8"))); 19 var_dump(bin2hex(mb_convert_encoding($string_mb, "ISO-8859-1", "UTF-8"))); 21 var_dump(bin2hex(mb_convert_encoding($string_mb, "ISO-8859-1", "UTF-8")));
|
H A D | mb_convert_encoding_failed_detection.phpt | 2 mb_convert_encoding() when encoding detection fails 6 var_dump(mb_convert_encoding("\xff", "ASCII", ["UTF-8", "UTF-16"])); 14 Warning: mb_convert_encoding(): Unable to detect character encoding in %s on line %d
|
H A D | mb_substr_count.phpt | 33 var_dump(@mb_substr_count(mb_convert_encoding($a, $to_enc), 34 mb_convert_encoding($b, $to_enc), $to_enc)); 37 var_dump(@mb_substr_count(mb_convert_encoding($a, $to_enc), 38 mb_convert_encoding($b, $to_enc), $to_enc));
|
H A D | mb_substitute_character.phpt | 12 var_dump(bin2hex(mb_convert_encoding("\xe2\x99\xa0\xe3\x81\x82", "CP932", "UTF-8"))); 16 var_dump(bin2hex(mb_convert_encoding("\xe2\x99\xa0\xe3\x81\x82", "CP932", "UTF-8"))); 20 var_dump(bin2hex(mb_convert_encoding("\xe2\x99\xa0\xe3\x81\x82", "CP932", "UTF-8"))); 24 var_dump(bin2hex(mb_convert_encoding("\xe2\x99\xa0\xe3\x81\x82", "CP932", "UTF-8")));
|
H A D | bug25140.phpt | 2 Bug #25140 (mb_convert_encoding returns FALSE on an empty string) 7 var_dump( mb_convert_encoding( '', 'SJIS', 'EUC-JP' ) );
|
H A D | mb_convert_encoding_leak.phpt | 2 mb_convert_encoding() shouldn't leak keys 10 mb_convert_encoding($array, 'UTF-8', 'UTF-8');
|
H A D | bug60306.phpt | 8 var_dump($s === mb_convert_encoding(mb_convert_encoding($s, "cp936", "utf8"), "utf8", "cp936"));
|
H A D | bug76958.phpt | 9 echo mb_convert_encoding($str, 'UTF-8', 'UTF7-IMAP') . "\n"; 11 echo mb_convert_encoding($str, 'UTF7-IMAP', 'UTF-8') . "\n";
|
H A D | bug46843.phpt | 7 var_dump(bin2hex(mb_convert_encoding("\x80", 'UCS-2BE', 'CP936'))); 8 var_dump(bin2hex(mb_convert_encoding("\x20\xac", 'CP936', 'UCS-2BE')));
|
H A D | bug62545.phpt | 10 bin2hex(mb_convert_encoding("\x98", 'UTF-8', 'Windows-1251')), 11 bin2hex(mb_convert_encoding("\x81\x8d\x8f\x90\x9d", 'UTF-8', 'Windows-1252'))
|
H A D | bug65045.phpt | 2 Bug #65045: mb_convert_encoding breaks well-formed character 21 $expected === mb_convert_encoding($str, 'UTF-8', 'UTF-8'), 22 $expected2 === mb_convert_encoding($str2, 'UTF-8', 'UTF-8')
|
H A D | bug79154.phpt | 2 Bug 79154 (mb_convert_encoding() can modify $from_encoding) 20 mb_convert_encoding('foo', 'UTF-8', $encodings);
|
H A D | mb_ereg.phpt | 18 $pat = mb_convert_encoding( $pat, $test_enc, $in_enc ); 19 $str = mb_convert_encoding( $str, $test_enc, $in_enc ); 20 …%d)%s\n", mb_ereg( $pat, $str, $reg ), ( is_array( $reg )? bin2hex(mb_convert_encoding( implode( '…
|
H A D | mb_strstr.phpt | 8 return mb_convert_encoding($utf8str, "EUC-JP", "UTF-8"); 12 return mb_convert_encoding($eucjpstr, "UTF-8", "EUC-JP");
|