From: Stanislav Malyshev Date: Tue, 8 Dec 2009 01:44:15 +0000 (+0000) Subject: add "no params" check X-Git-Tag: php-5.4.0alpha1~191^2~2293 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bbc707133537276a244e4c51a8e9e5563bb80b42;p=php add "no params" check --- 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;