mirror of
https://github.com/php/php-src.git
synced 2024-10-21 08:22:42 +00:00
19 lines
435 B
Plaintext
19 lines
435 B
Plaintext
|
--TEST--
|
||
|
mb_output_handler() and mbstring.http_output_content_type_regex (12)
|
||
|
--SKIPIF--
|
||
|
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
||
|
--INI--
|
||
|
mbstring.internal_encoding=UTF-8
|
||
|
--FILE--
|
||
|
<?php
|
||
|
mb_http_output("EUC-JP");
|
||
|
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"
|