php-src/ext/mbstring/tests/zend_multibyte-02.phpt

19 lines
359 B
PHP

--TEST--
zend multibyte (2)
--SKIPIF--
<?php
ini_set("mbstring.script_encoding","SJIS");
if (ini_set("mbstring.script_encoding","SJIS") != "SJIS") {
die("skip zend-multibyte is not available");
}
?>
--INI--
mbstring.script_encoding=UTF-8
mbstring.internal_encoding=CP932
--FILE--
<?php
var_dump(bin2hex("テスト"));
?>
--EXPECT--
string(12) "836583588367"