mirror of
https://github.com/php/php-src.git
synced 2026-04-29 11:13:36 +02:00
443927e3e8
Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com> Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
13 lines
328 B
PHP
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"
|