php-src/ext/spl/tests/bug54292.phpt
2015-05-16 16:49:14 -05:00

15 lines
301 B
PHP

--TEST--
Bug #54292 (Wrong parameter causes crash in SplFileObject::__construct())
--FILE--
<?php
try {
new SplFileObject('foo', array());
} catch (TypeError $e) {
var_dump($e->getMessage());
}
?>
--EXPECTF--
string(74) "SplFileObject::__construct() expects parameter 2 to be string, array given"