blob: aaf2738915779916e00e61e38d41baa6977dfd94 (
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";
}
?>
--EXPECT--
SplTempFileObject::__construct() expects argument #1 ($max_memory) to be of type int, string given
|