xref: /PHP-7.4/ext/mbstring/tests/bug45239.phpt (revision 487d4d07)
1--TEST--
2Bug #45239 (encoding detector hangs with mbstring.strict_detection enabled)
3--INI--
4mbstring.strict_detection=1
5input_encoding=UTF-8
6internal_encoding=UTF-8
7--SKIPIF--
8<?php
9extension_loaded('mbstring') or die('skip');
10?>
11--FILE--
12<?php
13mb_internal_encoding("utf-8");
14mb_parse_str("a=%fc", $dummy);
15var_dump(mb_http_input());
16?>
17--EXPECT--
18string(5) "UTF-8"
19