]> granicus.if.org Git - php/commitdiff
add "no params" check
authorStanislav Malyshev <stas@php.net>
Tue, 8 Dec 2009 01:44:15 +0000 (01:44 +0000)
committerStanislav Malyshev <stas@php.net>
Tue, 8 Dec 2009 01:44:15 +0000 (01:44 +0000)
ext/standard/filestat.c

index a2d844a47200a2afed5c7144ab6a5253b9462c0d..75fb5873e984c207c275f599a7664ce2e33a4886 100644 (file)
@@ -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;