This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
13 lines
345 B
PHP
13 lines
345 B
PHP
--TEST--
|
|
Bug #75944 (wrong detection cp1251 encoding because of missing last cyrillic letter)
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--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"
|