1--TEST-- 2zend multibyte (5) 3--SKIPIF-- 4<?php 5ini_set("mbstring.script_encoding","SJIS"); 6if (ini_set("mbstring.script_encoding","SJIS") != "SJIS") { 7 die("skip zend-multibyte is not available"); 8} 9?> 10--INI-- 11mbstring.script_encoding=EUC-JP 12mbstring.internal_encoding=UTF-8 13--FILE-- 14<?php 15// forcefully interpret an UTF-8 encoded string as EUC-JP and then convert it 16// back to UTF-8. There should be only a pair of consecutive bytes that is 17// valid EUC-encoded character "鴻". 18var_dump(bin2hex("テスト")); 19?> 20--EXPECT-- 21string(16) "3f3f3fe9b4bb3f3f" 22