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(10) {
17  [0]=>
18  string(14) "ANSI_X3.4-1968"
19  [1]=>
20  string(14) "ANSI_X3.4-1986"
21  [2]=>
22  string(6) "IBM367"
23  [3]=>
24  string(9) "ISO646-US"
25  [4]=>
26  string(16) "ISO_646.irv:1991"
27  [5]=>
28  string(8) "US-ASCII"
29  [6]=>
30  string(5) "cp367"
31  [7]=>
32  string(7) "csASCII"
33  [8]=>
34  string(8) "iso-ir-6"
35  [9]=>
36  string(2) "us"
37}
38array(0) {
39}
40array(1) {
41  [0]=>
42  string(6) "binary"
43}
44