summaryrefslogtreecommitdiff
path: root/ext/standard/filestat.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/filestat.c')
-rw-r--r--ext/standard/filestat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c
index 96d7af9ae4..2707c50da4 100644
--- a/ext/standard/filestat.c
+++ b/ext/standard/filestat.c
@@ -730,8 +730,8 @@ PHPAPI void php_clear_stat_cache(TSRMLS_D)
Clear file stat cache */
PHP_FUNCTION(clearstatcache)
{
- if (ZEND_NUM_ARGS()) {
- WRONG_PARAM_COUNT;
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
}
php_clear_stat_cache(TSRMLS_C);
}