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"));
13var_dump(mb_encoding_aliases("BAD"));
14?>
15--EXPECTF--
16Warning: mb_encoding_aliases() expects exactly 1 parameter, 0 given in %s on line 2
17array(11) {
18  [0]=>
19  string(14) "ANSI_X3.4-1968"
20  [1]=>
21  string(14) "ANSI_X3.4-1986"
22  [2]=>
23  string(7) "IBM-367"
24  [3]=>
25  string(6) "IBM367"
26  [4]=>
27  string(9) "ISO646-US"
28  [5]=>
29  string(16) "ISO_646.irv:1991"
30  [6]=>
31  string(8) "US-ASCII"
32  [7]=>
33  string(5) "cp367"
34  [8]=>
35  string(7) "csASCII"
36  [9]=>
37  string(8) "iso-ir-6"
38  [10]=>
39  string(2) "us"
40}
41array(0) {
42}
43array(1) {
44  [0]=>
45  string(6) "binary"
46}
47
48Warning: mb_encoding_aliases(): Unknown encoding "BAD" in %s on line %d
49bool(false)
50