From bbc707133537276a244e4c51a8e9e5563bb80b42 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Tue, 8 Dec 2009 01:44:15 +0000 Subject: [PATCH] add "no params" check --- ext/standard/filestat.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index a2d844a472..75fb5873e9 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -1208,6 +1208,9 @@ FileFunction(php_if_stat, FS_STAT) Get current size of realpath cache */ PHP_FUNCTION(realpath_cache_size) { + if (zend_parse_parameters_none() == FAILURE) { + return; + } RETURN_LONG(realpath_cache_size()); } @@ -1217,6 +1220,10 @@ PHP_FUNCTION(realpath_cache_get) { realpath_cache_bucket **buckets = realpath_cache_get_buckets(), **end = buckets + realpath_cache_max_buckets(); + if (zend_parse_parameters_none() == FAILURE) { + return; + } + array_init(return_value); while(buckets < end) { realpath_cache_bucket *bucket = *buckets; -- 2.40.0