blob: d9175f7e6fb36ceedcfbb93a9a870555c5a01d82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--TEST--
Bug #54292 (Wrong parameter causes crash in SplFileObject::__construct())
--FILE--
<?php
try {
new SplFileObject('foo', array());
} catch (Exception $e) {
var_dump($e->getMessage());
}
?>
--EXPECTF--
string(74) "SplFileObject::__construct() expects parameter 2 to be string, array given"
|