Home
last modified time | relevance | path

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

/php-src/ext/mbstring/tests/
H A Dgh15824.phpt2 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 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));
19 var_dump(mb_detect_encoding("\xFF\xFF", ['SJIS', '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("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 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 Dgh11476.phpt8 $detectedEncoding = mb_detect_encoding($str, mb_list_encodings(), true);
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-src/ext/standard/tests/file/windows_mb_path/
H A Dbug54028.phpt35 printf("Encoding: %s\n", mb_detect_encoding($content));
/php-src/ext/mbstring/
H A Dmbstring_arginfo.h330 ZEND_FUNCTION(mb_detect_encoding);
399 ZEND_FE(mb_detect_encoding, arginfo_mb_detect_encoding)
H A Dmbstring.stub.php149 function mb_detect_encoding(string $string, array|string|null $encodings = null, bool $strict = fal… function
H A Dmbstring.c3408 PHP_FUNCTION(mb_detect_encoding) in PHP_FUNCTION() argument

Completed in 48 milliseconds