summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2009-06-22 11:37:30 +0000
committerFelipe Pena <felipe@php.net>2009-06-22 11:37:30 +0000
commit56d7a43f0086fa43ababb3f0be48e1db8a2202b3 (patch)
treea378399e9a171ae5237d7fe694df32d8b1b32cb1 /ext
parentb3e9695a656777734b592419a6216fa6a50eda9c (diff)
downloadphp-git-56d7a43f0086fa43ababb3f0be48e1db8a2202b3.tar.gz
- Fixed bug #48641 (tmpfile() uses old parameter parsing)
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/file.c4
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();