xref: /php-src/ext/mbstring/tests/bug45239.phpt (revision 39131219)
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--EXTENSIONS--
8mbstring
9--FILE--
10<?php
11mb_internal_encoding("utf-8");
12mb_parse_str("a=%fc", $dummy);
13var_dump(mb_http_input());
14?>
15--EXPECT--
16string(5) "UTF-8"
17