1--TEST--
2Bug #54292 (Wrong parameter causes crash in SplFileObject::__construct())
3--FILE--
4<?php
5
6try {
7    new SplFileObject('foo', array());
8} catch (TypeError $e) {
9    var_dump($e->getMessage());
10}
11
12?>
13--EXPECT--
14string(85) "SplFileObject::__construct(): Argument #2 ($mode) must be of type string, array given"
15