Home
last modified time | relevance | path

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

/PHP-8.2/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)
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 Dgh10192_utf7.phpt2 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.2/ext/standard/tests/file/windows_mb_path/
H A Dbug54028.phpt35 printf("Encoding: %s\n", mb_detect_encoding($content));
/PHP-8.2/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.php139 function mb_detect_encoding(string $string, array|string|null $encodings = null, bool $strict = fal… function
H A Dmbstring.c2888 PHP_FUNCTION(mb_detect_encoding) in PHP_FUNCTION() argument
/PHP-8.2/
H A DUPGRADING224 . mb_detect_encoding() now checks input encoding more strictly

Completed in 27 milliseconds