mirror of
https://github.com/php/php-src.git
synced 2026-04-21 15:08:16 +02:00
d38f819647
The mb_http_input_pass.phpt was intended to use the same encoding as mb_http_input.phpt, not UTF-8.
30 lines
609 B
PHP
30 lines
609 B
PHP
--TEST--
|
|
mb_http_input()
|
|
--SKIPIF--
|
|
<?php
|
|
extension_loaded('mbstring') or die('skip mbstring not available');
|
|
?>
|
|
--POST--
|
|
a=ÆüËܸì0123456789ÆüËܸ쥫¥¿¥«¥Ê¤Ò¤é¤¬¤Ê
|
|
--GET--
|
|
b=ÆüËܸì0123456789ÆüËܸ쥫¥¿¥«¥Ê¤Ò¤é¤¬¤Ê
|
|
--INI--
|
|
mbstring.encoding_translation=1
|
|
input_encoding=latin1
|
|
--FILE--
|
|
<?php
|
|
|
|
echo $_POST['a']."\n";
|
|
echo $_GET['b']."\n";
|
|
|
|
// Get encoding
|
|
var_dump(mb_http_input('P'));
|
|
var_dump(mb_http_input('G'));
|
|
|
|
?>
|
|
--EXPECT--
|
|
ÆüËܸì0123456789ÆüËܸ쥫¥¿¥«¥Ê¤Ò¤é¤¬¤Ê
|
|
ÆüËܸì0123456789ÆüËܸ쥫¥¿¥«¥Ê¤Ò¤é¤¬¤Ê
|
|
string(10) "ISO-8859-1"
|
|
string(10) "ISO-8859-1"
|