summaryrefslogtreecommitdiff
path: root/ext/mbstring/tests/bug75944.phpt
blob: dc11ea244d93de96825e2de6faf4e1d345af5915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--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"