From: Moriyoshi Koizumi Date: Fri, 15 Nov 2002 15:59:07 +0000 (+0000) Subject: Divided the overload test into two so as to handle the case mbregex is X-Git-Tag: RELEASE_1_0b2~211 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=003be7fe321caf0104a60ce358ebdffae6d58779;p=php Divided the overload test into two so as to handle the case mbregex is not enabled --- diff --git a/ext/mbstring/tests/overload01.phpt b/ext/mbstring/tests/overload01.phpt new file mode 100644 index 0000000000..b0990e8161 --- /dev/null +++ b/ext/mbstring/tests/overload01.phpt @@ -0,0 +1,25 @@ +--TEST-- +Function overloading test 1 +--SKIPIF-- + +--INI-- +output_handler= +mbstring.func_overload=7 +mbstring.internal_encoding=EUC-JP +--FILE-- + --INI-- output_handler= @@ -17,9 +20,6 @@ echo mb_internal_encoding()."\n"; $ngchars = array('ǽ','ɽ','»½','¥½'); $str = '¸µÏ½ÍÜ»½Ðò¼Òº¾µ½É½¸½Ç½ÎÏɽ¼¨±½ÌÈÄä˽ÎÏŽÉÕ¹½Ê¸·½»ÒͽÃÎñ½Æ¬¥½¥Õ¥¡¡¼'; -var_dump(strlen($str)); -var_dump(mb_strlen($str)); - $converted_str = mb_convert_encoding($str, 'Shift_JIS'); mb_regex_encoding('Shift_JIS'); foreach($ngchars as $c) { @@ -30,8 +30,6 @@ foreach($ngchars as $c) { ?> --EXPECT-- EUC-JP -int(33) -int(33) int(10) int(8) int(3)