blob: fe473669879de301dedeed9b4037b117043258d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--TEST--
SPL SplTempFileObject constructor sets correct defaults when pass 0 arguments
--FILE--
<?php
try {
new SplTempFileObject('invalid');
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECTF--
SplTempFileObject::__construct() expects parameter 1 to be integer, string given
|