php-src/ext/spl/tests/SplTempFileObject_constructor_error.phpt
Nikita Popov 68195bd481 Update ext/spl parameter names
Closes GH-6284.
2020-10-07 12:26:46 +02:00

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