xref: /PHP-5.4/ext/mbstring/tests/overload01.phpt (revision 003be7fe)
1--TEST--
2Function overloading test 1
3--SKIPIF--
4<?php
5	extension_loaded('mbstring') or die('skip mbstring not available');
6	if (!function_exists("mail")) {
7		die('skip mail() function is not available.');
8	}
9?>
10--INI--
11output_handler=
12mbstring.func_overload=7
13mbstring.internal_encoding=EUC-JP
14--FILE--
15<?php
16echo mb_internal_encoding()."\n";
17
18$ngchars = array('ǽ','ɽ','��','��');
19$str = '��Ͻ�ܻ���Һ���ɽ��ǽ��ɽ��������˽��Ž�չ�ʸ����ͽ���Ƭ���ե���';
20var_dump(strlen($str));
21var_dump(mb_strlen($str));
22--EXPECT--
23EUC-JP
24int(33)
25int(33)
26