summaryrefslogtreecommitdiff
path: root/ext/session
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-04-20 17:24:01 +0000
committerZeev Suraski <zeev@php.net>2000-04-20 17:24:01 +0000
commit883bd2b1de0afae5a3b9f36c0778ba0b08390e25 (patch)
tree55edad9c20fa7047ebc822893ca50548336f6655 /ext/session
parent7412bd5c849ac8b49da2ffc195110307fae2ba37 (diff)
downloadphp-git-883bd2b1de0afae5a3b9f36c0778ba0b08390e25.tar.gz
- Fix virtual cwd bug
- Add more V_STAT() V_LSTAT() changes
Diffstat (limited to 'ext/session')
-rw-r--r--ext/session/mod_files.c2
-rw-r--r--ext/session/session.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c
index 64879d5969..e9ff89212f 100644
--- a/ext/session/mod_files.c
+++ b/ext/session/mod_files.c
@@ -175,7 +175,7 @@ static int _ps_files_cleanup_dir(const char *dirname, int maxlifetime)
snprintf(buf, MAXPATHLEN, "%s%c%s", dirname, DIR_DELIMITER,
entry->d_name) > 0 &&
/* stat the directory entry */
- stat(buf, &sbuf) == 0 &&
+ V_STAT(buf, &sbuf) == 0 &&
/* is it expired? */
(now - sbuf.st_atime) > maxlifetime) {
unlink(buf);
diff --git a/ext/session/session.c b/ext/session/session.c
index 589759e69c..63a785139f 100644
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@ -497,7 +497,7 @@ static void last_modified(void)
path = SG(request_info).path_translated;
if (path) {
- if (stat(path, &sb) == -1) {
+ if (V_STAT(path, &sb) == -1) {
return;
}