/PHP-8.4/ext/mbstring/tests/ |
H A D | gh15824.phpt | 2 GH-15824 (ValueError: mb_detect_encoding(): Argument #2 ($encodings) contains invalid encoding "UTF… 8 var_dump(mb_detect_encoding('abc', 'UTF8, ASCII')); 9 var_dump(mb_detect_encoding('こんにちは', 'UTF8, ASCII')); 10 var_dump(mb_detect_encoding('こんにちは', 'ASCII, UTF8')); 11 var_dump(mb_detect_encoding("\xC5", 'US-ASCII, LATIN4')); 12 var_dump(mb_detect_encoding("\xC5", 'US-ASCII, cyrillic')); 14 var_dump(mb_detect_encoding("\x9D", 'US-ASCII, CP1254, cyrillic')); 15 var_dump(mb_detect_encoding("\x9D", 'US-ASCII, CP1254, cyrillic', false)); 18 var_dump(mb_detect_encoding('abc', 'ANSI_X3.4-1968, ISO-8859-1')); 19 var_dump(mb_detect_encoding('abc', 'CP50220, ANSI_X3.4-1968')); [all …]
|
H A D | bug81298.phpt | 2 Bug #81298: mb_detect_encoding() segfaults when 7bit encoding is specified 8 var_dump(mb_detect_encoding("foobar.", "7bit")); 9 var_dump(mb_detect_encoding("foobar.", "7bit,ascii")); 10 var_dump(mb_detect_encoding("foobar.", "7bit,ascii,utf8")); 11 var_dump(mb_detect_encoding("foobar.", "html")); 12 var_dump(mb_detect_encoding("foobar.", "ascii,html"));
|
H A D | mb_detect_encoding_empty_encoding_list.phpt | 2 Test mb_detect_encoding() function : empty encoding list 11 var_dump( mb_detect_encoding($string, '')); 16 var_dump( mb_detect_encoding($string, [])); 23 mb_detect_encoding(): Argument #2 ($encodings) must specify at least one encoding 24 mb_detect_encoding(): Argument #2 ($encodings) must specify at least one encoding
|
H A D | bug49536.phpt | 2 Bug #49536 (mb_detect_encoding() returns incorrect results when strict_mode is turned on) 8 var_dump(mb_detect_encoding("A\x81", "SJIS", false)); 10 var_dump(mb_detect_encoding("A\x81", "SJIS", true)); 12 var_dump(mb_detect_encoding("\xc0\x00", "UTF-8", false)); 14 var_dump(mb_detect_encoding("\xc0\x00", "UTF-8", true)); 19 var_dump(mb_detect_encoding("\xFF\xFF", ['SJIS', 'UTF-8'], true));
|
H A D | bug81349.phpt | 2 Bug #81349: mb_detect_encoding misdetcts ASCII in some cases 8 echo(mb_detect_encoding("\xe4,a", ['ASCII', 'UTF-8', 'ISO-8859-1'])."\n"); 9 echo(mb_detect_encoding("\xe4 a", ['ASCII', 'UTF-8', 'ISO-8859-1'])."\n");
|
H A D | gh9008.phpt | 2 GH-9008 (mb_detect_encoding(): wrong results with null $encodings) 18 mb_detect_encoding($string, null, true), 19 mb_detect_encoding($string, mb_detect_order(), true),
|
H A D | mb_detect_encoding.phpt | 2 mb_detect_encoding() 22 print("Empty String: " . mb_detect_encoding('') . "\n"); 48 print("JIS: " . mb_detect_encoding($jis, $a) . "\n"); 50 print("SJIS: " . mb_detect_encoding($sjis, $a) . "\n"); 61 echo mb_detect_encoding($test, $encodings), "\n"; 65 echo mb_detect_encoding($test, ['UTF-8', 'SJIS']), "\n"; 76 echo mb_detect_encoding($test, ['UTF-8', 'UTF-16']), "\n"; 111 print("JIS: " . mb_detect_encoding($jis) . "\n"); 113 print("EUC-JP: " . mb_detect_encoding($euc_jp) . "\n"); 115 print("SJIS: " . mb_detect_encoding($sjis) . "\n"); [all …]
|
H A D | bug75944.phpt | 7 var_dump(mb_detect_encoding(chr(0xfe), array('CP-1251'))); // letter '?' 8 var_dump(mb_detect_encoding(chr(0xff), array('CP-1251'))); // letter '?'
|
H A D | mb_detect_encoding_incomplete_sequence.phpt | 2 mb_detect_encoding() with incomplete trailing sequence 11 var_dump(mb_detect_encoding("A\xC2", ["UTF-8", "ISO-8859-1"]));
|
H A D | gh11476.phpt | 8 $detectedEncoding = mb_detect_encoding($str, mb_list_encodings(), true);
|
H A D | gh10192_utf7imap.phpt | 2 GH-10192 (mb_detect_encoding() results for UTF-7 differ between PHP 8.0 and 8.1) 53 var_dump(mb_detect_encoding($case, 'UTF-8, UTF7-IMAP', true)); 54 var_dump(mb_detect_encoding($case, 'UTF-8, UTF7-IMAP', false)); 55 var_dump(mb_detect_encoding($case, 'UTF7-IMAP', true)); 56 var_dump(mb_detect_encoding($case, 'UTF7-IMAP', false));
|
H A D | gh10192_utf7.phpt | 2 GH-10192 (mb_detect_encoding() results for UTF-7 differ between PHP 8.0 and 8.1) 65 var_dump(mb_detect_encoding($case, 'UTF-8, UTF-7', true)); 66 var_dump(mb_detect_encoding($case, 'UTF-8, UTF-7', false)); 67 var_dump(mb_detect_encoding($case, 'UTF-7', true)); 68 var_dump(mb_detect_encoding($case, 'UTF-7', false));
|
/PHP-8.4/ext/standard/tests/file/windows_mb_path/ |
H A D | bug54028.phpt | 35 printf("Encoding: %s\n", mb_detect_encoding($content));
|
/PHP-8.4/ext/mbstring/ |
H A D | mbstring_arginfo.h | 330 ZEND_FUNCTION(mb_detect_encoding); 399 ZEND_FE(mb_detect_encoding, arginfo_mb_detect_encoding)
|
H A D | mbstring.stub.php | 149 function mb_detect_encoding(string $string, array|string|null $encodings = null, bool $strict = fal… function
|
H A D | mbstring.c | 3408 PHP_FUNCTION(mb_detect_encoding) in PHP_FUNCTION() argument
|
/PHP-8.4/ |
H A D | NEWS | 447 . Fixed bug GH-15824 (mb_detect_encoding(): Argument $encodings contains
|