mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
12 lines
313 B
PHP
12 lines
313 B
PHP
--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(): Argument #1 ($maxMemory) must be of type int, string given
|