mirror of
https://github.com/php/php-src.git
synced 2026-10-28 17:56:50 +08:00
Moves the usage of `mb_internal_encoding()` to INI section for the tests not testing the encoding/function itself, but the other mbstring/iconv functions.
20 lines
524 B
PHP
20 lines
524 B
PHP
--TEST--
|
|
Test mb_decode_mimeheader() function : variation
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--INI--
|
|
internal_encoding=iso-8859-7
|
|
--FILE--
|
|
<?php
|
|
echo "*** Testing mb_decode_mimeheader() : variation ***\n";
|
|
|
|
//greek in UTF-8 to be converted to iso-8859-7
|
|
$encoded_word = "=?UTF-8?B?zrHOss6zzrTOtc62zrfOuM65zrrOu868zr3Ovs6/z4DPgc+Dz4TPhc+Gz4fPiM+J?=";
|
|
var_dump(bin2hex(mb_decode_mimeheader($encoded_word)));
|
|
|
|
|
|
?>
|
|
--EXPECT--
|
|
*** Testing mb_decode_mimeheader() : variation ***
|
|
string(48) "e1e2e3e4e5e6e7e8e9eaebecedeeeff0f1f3f4f5f6f7f8f9"
|