1--TEST--
2mb_http_input()
3--EXTENSIONS--
4mbstring
5--POST--
6a=���ܸ�0123456789���ܸ쥫�����ʤҤ餬��
7--GET--
8b=���ܸ�0123456789���ܸ쥫�����ʤҤ餬��
9--INI--
10mbstring.encoding_translation=1
11input_encoding=latin1
12--FILE--
13<?php
14
15echo $_POST['a']."\n";
16echo $_GET['b']."\n";
17
18// Get encoding
19var_dump(mb_http_input('P'));
20var_dump(mb_http_input('G'));
21var_dump(mb_http_input('C'));
22var_dump(mb_http_input('S'));
23var_dump(mb_http_input('I'));
24var_dump(mb_http_input('L'));
25
26?>
27--EXPECT--
28ÆüËܸì0123456789ÆüËܸ쥫¥¿¥«¥Ê¤Ò¤é¤¬¤Ê
29ÆüËܸì0123456789ÆüËܸ쥫¥¿¥«¥Ê¤Ò¤é¤¬¤Ê
30string(10) "ISO-8859-1"
31string(10) "ISO-8859-1"
32bool(false)
33bool(false)
34array(1) {
35  [0]=>
36  string(10) "ISO-8859-1"
37}
38string(10) "ISO-8859-1"
39