1--TEST-- 2mb_http_input() with pass encoding 3--SKIPIF-- 4<?php 5extension_loaded('mbstring') or die('skip mbstring not available'); 6?> 7--POST-- 8a=���ܸ�0123456789���ܸ쥫�����ʤҤ餬�� 9--GET-- 10b=���ܸ�0123456789���ܸ쥫�����ʤҤ餬�� 11--INI-- 12mbstring.encoding_translation=1 13input_encoding=pass 14--FILE-- 15<?php 16 17echo $_POST['a']."\n"; 18echo $_GET['b']."\n"; 19 20// Get encoding 21var_dump(mb_http_input('P')); 22var_dump(mb_http_input('G')); 23var_dump(mb_http_input('C')); 24var_dump(mb_http_input('S')); 25var_dump(mb_http_input('I')); 26var_dump(mb_http_input('L')); 27 28?> 29--EXPECT-- 30���ܸ�0123456789���ܸ쥫�����ʤҤ餬�� 31���ܸ�0123456789���ܸ쥫�����ʤҤ餬�� 32string(4) "pass" 33string(4) "pass" 34bool(false) 35bool(false) 36array(1) { 37 [0]=> 38 string(4) "pass" 39} 40string(4) "pass" 41