1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/spl/tests/SplFileObject/bug54292.phpt
2022-05-27 18:33:48 +01:00

15 lines
317 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());
}
?>
--EXPECT--
string(85) "SplFileObject::__construct(): Argument #2 ($mode) must be of type string, array given"