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