mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
24 lines
490 B
PHP
24 lines
490 B
PHP
--TEST--
|
|
zend multibyte (13)
|
|
--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=ISO-8859-1
|
|
--FILE--
|
|
<?php
|
|
var_dump(substr(file_get_contents(__FILE__), __COMPILER_HALT_OFFSET__));
|
|
var_dump(bin2hex("äëüáéú"));
|
|
__halt_compiler();test
|
|
test
|
|
--EXPECT--
|
|
string(10) "test
|
|
test
|
|
"
|
|
string(12) "e4ebfce1e9fa"
|