xref: /php-src/ext/mbstring/tests/gh11476.phpt (revision 443927e3)
1--TEST--
2GH-11476: count_demerits negative-size-param
3--EXTENSIONS--
4mbstring
5--FILE--
6<?php
7$str = str_repeat('a', 250) . chr(246) . str_repeat('a', 9) . chr(246) . str_repeat('a', 6);
8$detectedEncoding = mb_detect_encoding($str, mb_list_encodings(), true);
9var_dump($detectedEncoding);
10?>
11--EXPECT--
12string(12) "Windows-1252"
13