xref: /PHP-7.2/ext/mbstring/tests/overload01.phpt (revision 17ccbeec)
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--
23Deprecated: The mbstring.func_overload directive is deprecated in Unknown on line 0
24EUC-JP
25int(33)
26int(33)
27