1--TEST--
2mb_http_input()
3--SKIPIF--
4<?php
5extension_loaded('mbstring') or die('skip mbstring not available');
6(php_sapi_name()=='cgi') or die("skip sapi is not a cgi version");
7die("skip disabled temporarily");
8?>
9--POST--
10a=���ܸ�0123456789���ܸ쥫�����ʤҤ餬��
11--GET--
12b=���ܸ�0123456789���ܸ쥫�����ʤҤ餬��
13--FILE--
14<?php
15// TODO: This is not a real test.... Need to change so that it does real testing
16//$debug = true;
17ini_set('include_path', dirname(__FILE__));
18include_once('common.inc');
19
20$ini = ini_get('mbstring.http_input');
21
22// It must be url encoded....
23// echo vars
24echo $_POST['a']."\n";
25echo $_GET['b']."\n";
26
27// Get encoding
28$enc = mb_http_input('P');
29
30// check
31if (empty($ini)) {
32	// Must be pass
33	if ($enc === 'pass') {
34		echo "OK\n";
35	}
36	else {
37		echo "NG\n";
38	}
39}
40else {
41	// Some encoding
42	echo "This heppens when php.ini-dist is not used\n";
43}
44
45?>
46--EXPECT--
47���ܸ�0123456789���ܸ쥫�����ʤҤ餬��
48���ܸ�0123456789���ܸ쥫�����ʤҤ餬��
49OK
50