php-src/ext/mbstring/tests/overload01.phpt
2002-11-15 15:59:07 +00:00

26 lines
547 B
PHP

--TEST--
Function overloading test 1
--SKIPIF--
<?php
extension_loaded('mbstring') or die('skip mbstring not available');
if (!function_exists("mail")) {
die('skip mail() function is not available.');
}
?>
--INI--
output_handler=
mbstring.func_overload=7
mbstring.internal_encoding=EUC-JP
--FILE--
<?php
echo mb_internal_encoding()."\n";
$ngchars = array('能','表','蚕','ソ');
$str = '元禄養蚕會社詐欺表現能力表示噂免停暴力貼付構文圭子予知饅頭ソファー';
var_dump(strlen($str));
var_dump(mb_strlen($str));
--EXPECT--
EUC-JP
int(33)
int(33)