xref: /PHP-8.0/ext/mbstring/tests/bug77165.phpt (revision db4f5e44)
1--TEST--
2Bug #77165: mb_check_encoding crashes when argument given an empty array
3--SKIPIF--
4<?php require 'skipif.inc'; ?>
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