Home
last modified time | relevance | path

Searched refs:mb_detect_encoding (Results 1 – 16 of 16) sorted by relevance

/PHP-8.1/ext/mbstring/tests/
H A Dbug81298.phpt2 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 Dmb_detect_encoding_empty_encoding_list.phpt2 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 Dbug49536.phpt2 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));
H A Dbug81349.phpt2 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 Dgh9008.phpt2 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 Dmb_detect_encoding.phpt2 mb_detect_encoding()
22 print("SJIS: " . mb_detect_encoding($sjis, 'SJIS') . "\n");
23 print("JIS: " . mb_detect_encoding($jis, 'JIS') . "\n");
32 print("JIS: " . mb_detect_encoding($jis, $a) . "\n");
34 print("SJIS: " . mb_detect_encoding($sjis, $a) . "\n");
45 echo mb_detect_encoding($test, $encodings), "\n";
49 echo mb_detect_encoding($test, ['UTF-8', 'SJIS']), "\n";
76 print("JIS: " . mb_detect_encoding($jis) . "\n");
78 print("EUC-JP: " . mb_detect_encoding($euc_jp) . "\n");
80 print("SJIS: " . mb_detect_encoding($sjis) . "\n");
[all …]
H A Dbug75944.phpt7 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 Dmb_detect_encoding_incomplete_sequence.phpt2 mb_detect_encoding() with incomplete trailing sequence
11 var_dump(mb_detect_encoding("A\xC2", ["UTF-8", "ISO-8859-1"]));
H A Dgh10192_utf7imap.phpt2 GH-10192 (mb_detect_encoding() results for UTF-7 differ between PHP 8.0 and 8.1)
45 var_dump(mb_detect_encoding($case, 'UTF-8, UTF7-IMAP', true));
46 var_dump(mb_detect_encoding($case, 'UTF-8, UTF7-IMAP', false));
47 var_dump(mb_detect_encoding($case, 'UTF7-IMAP', true));
48 var_dump(mb_detect_encoding($case, 'UTF7-IMAP', false));
H A Dgh10192_utf7.phpt2 GH-10192 (mb_detect_encoding() results for UTF-7 differ between PHP 8.0 and 8.1)
57 var_dump(mb_detect_encoding($case, 'UTF-8, UTF-7', true));
58 var_dump(mb_detect_encoding($case, 'UTF-8, UTF-7', false));
59 var_dump(mb_detect_encoding($case, 'UTF-7', true));
60 var_dump(mb_detect_encoding($case, 'UTF-7', false));
/PHP-8.1/ext/standard/tests/file/windows_mb_path/
H A Dbug54028.phpt33 printf("Encoding: %s\n", mb_detect_encoding($content));
/PHP-8.1/ext/mbstring/
H A Dmbstring_arginfo.h334 ZEND_FUNCTION(mb_detect_encoding);
428 ZEND_FE(mb_detect_encoding, arginfo_mb_detect_encoding)
H A Dmbstring.stub.php91 function mb_detect_encoding(string $string, array|string|null $encodings = null, bool $strict = fal… function
H A Dmbstring.c2714 PHP_FUNCTION(mb_detect_encoding) in PHP_FUNCTION() argument
/PHP-8.1/
H A DNEWS1116 . Fixed bug GH-9008 (mb_detect_encoding(): wrong results with null $encodings).
1232 . mb_detect_encoding recognizes all letters in Czech alphabet (alexdowad)
1233 . mb_detect_encoding recognizes all letters in Hungarian alphabet (alexdowad)
1743 . Fixed bug #81390 (mb_detect_encoding() regression). (alexdowad)
1744 . Fixed bug #81349 (mb_detect_encoding misdetcts ASCII in some cases).
1746 . Fixed bug #81298 (mb_detect_encoding() segfaults when 7bit encoding is
H A DUPGRADING494 . mb_detect_encoding() now checks input encoding more strictly

Completed in 30 milliseconds