diff options
Diffstat (limited to 'ext/standard/file.c')
| -rw-r--r-- | ext/standard/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c index f2b6ea7294..a98abce7d0 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -869,8 +869,8 @@ PHP_NAMED_FUNCTION(php_if_tmpfile) { php_stream *stream; - if (ZEND_NUM_ARGS() != 0) { - WRONG_PARAM_COUNT; + if (zend_parse_parameters_none() == FAILURE) { + return; } stream = php_stream_fopen_tmpfile(); |
