summaryrefslogtreecommitdiff
path: root/ext/standard/filestat.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/filestat.c')
-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;