1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00
Files
archived-php-src/ext/mbstring/tests/gh11476.phpt
2023-06-19 22:05:15 +02:00

13 lines
328 B
PHP

--TEST--
GH-11476: count_demerits negative-size-param
--EXTENSIONS--
mbstring
--FILE--
<?php
$str = str_repeat('a', 250) . chr(246) . str_repeat('a', 9) . chr(246) . str_repeat('a', 6);
$detectedEncoding = mb_detect_encoding($str, mb_list_encodings(), true);
var_dump($detectedEncoding);
?>
--EXPECT--
string(12) "Windows-1252"