mirror of
https://github.com/php/php-src.git
synced 2024-10-18 15:02:38 +00:00
22 lines
576 B
Plaintext
22 lines
576 B
Plaintext
|
--TEST--
|
||
|
zend multibyte (9)
|
||
|
--SKIP--
|
||
|
<?php
|
||
|
ini_set("mbstring.script_encoding", "SJIS");
|
||
|
ini_set("mbstring.script_encoding", "***") != "SJIS" or
|
||
|
die("skip zend-multibyte is not available");
|
||
|
?>
|
||
|
--INI--
|
||
|
mbstring.script_encoding=cp1251
|
||
|
mbstring.internal_encoding=UTF-8
|
||
|
--FILE--
|
||
|
<?php
|
||
|
declare(encoding="EUC-JP");
|
||
|
// forcefully interpret an UTF-8 encoded string as EUC-JP and then convert it
|
||
|
// back to UTF-8. There should be only a pair of consecutive bytes that is
|
||
|
// valid EUC-encoded character "鴻".
|
||
|
var_dump(bin2hex("テスト"));
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
string(16) "3f3f3fe9b4bb3f3f"
|