1--TEST--
2mb_encoding_aliases()
3--SKIPIF--
4<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
5--FILE--
6<?php
7mb_encoding_aliases();
8$list = mb_encoding_aliases("ASCII");
9sort($list);
10var_dump($list);
11var_dump(mb_encoding_aliases("7bit"));
12var_dump(mb_encoding_aliases("8bit"));
13?>
14--EXPECTF--
15Warning: mb_encoding_aliases() expects exactly 1 parameter, 0 given in %s on line 2
16array(11) {
17  [0]=>
18  string(14) "ANSI_X3.4-1968"
19  [1]=>
20  string(14) "ANSI_X3.4-1986"
21  [2]=>
22  string(7) "IBM-367"
23  [3]=>
24  string(6) "IBM367"
25  [4]=>
26  string(9) "ISO646-US"
27  [5]=>
28  string(16) "ISO_646.irv:1991"
29  [6]=>
30  string(8) "US-ASCII"
31  [7]=>
32  string(5) "cp367"
33  [8]=>
34  string(7) "csASCII"
35  [9]=>
36  string(8) "iso-ir-6"
37  [10]=>
38  string(2) "us"
39}
40array(0) {
41}
42array(1) {
43  [0]=>
44  string(6) "binary"
45}
46