1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 09:28:21 +02:00
Files
archived-php-src/ext/mbstring/tests/mb_output_handler_runtime_ini_alteration-01.phpt
T
Nikita Popov 39131219e8 Migrate more SKIPIF -> EXTENSIONS (#7139)
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
2021-06-11 12:58:44 +02:00

21 lines
477 B
PHP

--TEST--
mb_output_handler() and mbstring.http_output_conv_mimetypes alteration in runtime (1)
--EXTENSIONS--
mbstring
--INI--
internal_encoding=UTF-8
mbstring.http_output_conv_mimetypes=plain
--FILE--
<?php
mb_http_output("EUC-JP");
ini_set('mbstring.http_output_conv_mimetypes', 'text');
header("Content-Type: text/html");
ob_start();
ob_start('mb_output_handler');
echo "テスト";
ob_end_flush();
var_dump(bin2hex(ob_get_clean()));
?>
--EXPECT--
string(12) "a5c6a5b9a5c8"