1--TEST-- 2zend multibyte (7) 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=ISO-8859-1 12mbstring.internal_encoding=EUC-JP 13--FILE-- 14<?php 15declare(encoding="UTF-8"); 16var_dump(bin2hex("テスト")); 17?> 18--EXPECT-- 19string(12) "a5c6a5b9a5c8" 20