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--FILE-- 6<?php 7mb_http_output("EUC-JP"); 8header("Content-Type: application/octet-stream"); 9ob_start(); 10ob_start('mb_output_handler'); 11echo "テスト"; 12ob_end_flush(); 13var_dump(bin2hex(ob_get_clean())); 14?> 15--EXPECT-- 16string(18) "e38386e382b9e38388" 17