mirror of
https://github.com/php/php-src.git
synced 2024-10-02 07:16:11 +00:00
675a0539db
Basic usage (no params) Basic usage (with max memory specified) Variation (passing a neg value to the constructor) Error (Passing a non long int value to constructor)
13 lines
388 B
PHP
13 lines
388 B
PHP
--TEST--
|
|
SPL SplTempFileObject constructor sets correct defaults when pass 0 arguments
|
|
--FILE--
|
|
<?php
|
|
new SplTempFileObject('invalid');
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught exception 'RuntimeException' with message 'SplTempFileObject::__construct() expects parameter 1 to be long, string given' in %s
|
|
Stack trace:
|
|
#0 %s: SplTempFileObject->__construct('invalid')
|
|
#1 {main}
|
|
thrown in %s
|