diff options
author | Stanislav Malyshev <stas@php.net> | 2009-12-08 01:44:15 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2009-12-08 01:44:15 +0000 |
commit | 90df6f2ca2d16a260bbc6f320755ba1f75f5d258 (patch) | |
tree | a2309da5792295d5a14e0c13bf8084a503a0ad59 | |
parent | 7beb1af8de200265c4f39b94b8d9de6ed574f74f (diff) | |
download | php-git-90df6f2ca2d16a260bbc6f320755ba1f75f5d258.tar.gz |
add "no params" check
-rw-r--r-- | ext/standard/filestat.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index f37f5bb599..c0a0e0f07c 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -1111,6 +1111,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()); } @@ -1120,6 +1123,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; |