mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
15 lines
301 B
PHP
15 lines
301 B
PHP
--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"
|