1--TEST--
2mb_output_handler() and mbstring.http_output_conv_mimetypes (4)
3--SKIPIF--
4<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
5--INI--
6mbstring.internal_encoding=UTF-8
7--FILE--
8<?php
9mb_http_output("EUC-JP");
10header("Content-Type: application/octet-stream");
11ob_start();
12ob_start('mb_output_handler');
13echo "テスト";
14ob_end_flush();
15var_dump(bin2hex(ob_get_clean()));
16?>
17--EXPECT--
18string(18) "e38386e382b9e38388"
19