1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/ext/spl/tests/bug54292.phpt
Máté Kocsis 960318ed95 Change argument error message format
Closes GH-5211
2020-02-26 15:00:08 +01:00

15 lines
322 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(90) "SplFileObject::__construct(): Argument #2 ($open_mode) must be of type string, array given"