1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/ext/mbstring/tests/bug81349.phpt
2021-08-11 14:03:18 +02:00

15 lines
297 B
PHP

--TEST--
Bug #81349: mb_detect_encoding misdetcts ASCII in some cases
--EXTENSIONS--
mbstring
--FILE--
<?php
echo(mb_detect_encoding("\xe4,a", ['ASCII', 'UTF-8', 'ISO-8859-1'])."\n");
echo(mb_detect_encoding("\xe4 a", ['ASCII', 'UTF-8', 'ISO-8859-1'])."\n");
?>
--EXPECT--
ISO-8859-1
ISO-8859-1