xref: /PHP-7.4/ext/mbstring/tests/overload01.phpt (revision 487d4d07)
1--TEST--
2Function overloading test 1
3--SKIPIF--
4<?php
5	extension_loaded('mbstring') or die('skip mbstring not available');
6?>
7--INI--
8output_handler=
9mbstring.func_overload=7
10internal_encoding=EUC-JP
11--FILE--
12<?php
13echo mb_internal_encoding()."\n";
14
15$ngchars = array('ǽ','ɽ','��','��');
16$str = '��Ͻ�ܻ���Һ���ɽ��ǽ��ɽ��������˽��Ž�չ�ʸ����ͽ���Ƭ���ե���';
17var_dump(strlen($str));
18var_dump(mb_strlen($str));
19--EXPECT--
20Deprecated: The mbstring.func_overload directive is deprecated in Unknown on line 0
21EUC-JP
22int(33)
23int(33)
24