xref: /php-src/ext/mbstring/tests/bug77165.phpt (revision 4083600b)
1--TEST--
2Bug #77165: mb_check_encoding crashes when argument given an empty array
3--EXTENSIONS--
4mbstring
5--FILE--
6<?php
7var_dump(mb_check_encoding(array()));
8var_dump(mb_convert_encoding(array(), 'UTF-8'));
9?>
10--EXPECT--
11bool(true)
12array(0) {
13}
14