1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00
Files
archived-php-src/ext/mbstring/tests/mb_http_input.phpt
Nikita Popov d38f819647 Fix test file encoding
The mb_http_input_pass.phpt was intended to use the same encoding
as mb_http_input.phpt, not UTF-8.
2020-05-07 21:18:49 +02:00

30 lines
609 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
--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"