summaryrefslogtreecommitdiff
path: root/ext/mbstring/tests/bug75944.phpt
blob: cb66d4e2301fd37caeeb2c0d5cba7104ccab3418 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
Bug #75944 (wrong detection cp1251 encoding because of missing last cyrillic letter)
--SKIPIF--
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
--FILE--
<?php
var_dump(mb_detect_encoding(chr(0xfe), array('CP-1251'))); // letter '?'
var_dump(mb_detect_encoding(chr(0xff), array('CP-1251'))); // letter '?'
?>
--EXPECT--
string(12) "Windows-1251"
string(12) "Windows-1251"