summaryrefslogtreecommitdiff
path: root/main/streams/plain_wrapper.c
diff options
context:
space:
mode:
authorArnaud Le Blanc <lbarnaud@php.net>2008-08-07 09:25:33 +0000
committerArnaud Le Blanc <lbarnaud@php.net>2008-08-07 09:25:33 +0000
commitc93fbf629bb4ad063e9850984f039970b1d3b7c2 (patch)
tree5a76c3c7c1c0549062a607137715b3352416cec3 /main/streams/plain_wrapper.c
parent53a957e5f8d7d0b67aa1b7f7bdf629784a51debd (diff)
downloadphp-git-c93fbf629bb4ad063e9850984f039970b1d3b7c2.tar.gz
MFH:
Added clear_realpath_cache and filename parameters to clearstatcache() (Jani, Arnaud) [DOC] clearstatcache() now defaults to not affect the realpath cache. clearstatcache() now takes two optionnal parameters, clear_realpath_cache to clear the realpath cache (defaults to false), and filename to clear only the given filename from the cache.
Diffstat (limited to 'main/streams/plain_wrapper.c')
-rw-r--r--main/streams/plain_wrapper.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c
index ace2dc38fd..6be46df215 100644
--- a/main/streams/plain_wrapper.c
+++ b/main/streams/plain_wrapper.c
@@ -1039,8 +1039,8 @@ static int php_plain_files_unlink(php_stream_wrapper *wrapper, char *url, int op
return 0;
}
- /* Clear stat cache */
- php_clear_stat_cache(TSRMLS_C);
+ /* Clear stat cache (and realpath cache) */
+ php_clear_stat_cache(1, NULL, 0 TSRMLS_CC);
return 1;
}
@@ -1111,8 +1111,8 @@ static int php_plain_files_rename(php_stream_wrapper *wrapper, char *url_from, c
return 0;
}
- /* Clear stat cache */
- php_clear_stat_cache(TSRMLS_C);
+ /* Clear stat cache (and realpath cache) */
+ php_clear_stat_cache(1, NULL, 0 TSRMLS_CC);
return 1;
}
@@ -1225,8 +1225,8 @@ static int php_plain_files_rmdir(php_stream_wrapper *wrapper, char *url, int opt
return 0;
}
- /* Clear stat cache */
- php_clear_stat_cache(TSRMLS_C);
+ /* Clear stat cache (and realpath cache) */
+ php_clear_stat_cache(1, NULL, 0 TSRMLS_CC);
return 1;
}