Searched refs:mb_detect_encoding (Results 1 – 15 of 15) sorted by relevance
/PHP-8.2/ext/mbstring/tests/ |
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));
|
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("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 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 | 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.2/ext/standard/tests/file/windows_mb_path/ |
H A D | bug54028.phpt | 35 printf("Encoding: %s\n", mb_detect_encoding($content));
|
/PHP-8.2/ext/mbstring/ |
H A D | mbstring_arginfo.h | 334 ZEND_FUNCTION(mb_detect_encoding); 428 ZEND_FE(mb_detect_encoding, arginfo_mb_detect_encoding)
|
H A D | mbstring.stub.php | 139 function mb_detect_encoding(string $string, array|string|null $encodings = null, bool $strict = fal… function
|
H A D | mbstring.c | 2888 PHP_FUNCTION(mb_detect_encoding) in PHP_FUNCTION() argument
|
/PHP-8.2/ |
H A D | UPGRADING | 224 . mb_detect_encoding() now checks input encoding more strictly
|
Completed in 27 milliseconds