summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2009-12-08 01:44:15 +0000
committerStanislav Malyshev <stas@php.net>2009-12-08 01:44:15 +0000
commit90df6f2ca2d16a260bbc6f320755ba1f75f5d258 (patch)
treea2309da5792295d5a14e0c13bf8084a503a0ad59
parent7beb1af8de200265c4f39b94b8d9de6ed574f74f (diff)
downloadphp-git-90df6f2ca2d16a260bbc6f320755ba1f75f5d258.tar.gz
add "no params" check
-rw-r--r--ext/standard/filestat.c7
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;