summaryrefslogtreecommitdiff
path: root/ext/session/mod_files.c
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-07-05 01:26:22 +0000
committerSascha Schumann <sas@php.net>2000-07-05 01:26:22 +0000
commit277b0e15b8cfeb4557badecb5c269eb3ec7d333b (patch)
tree84da7a05b1da305cedc8ca75b906404bd3b5b937 /ext/session/mod_files.c
parent94d7e1fa5b5c42969b301077947961dccded30e2 (diff)
downloadphp-git-277b0e15b8cfeb4557badecb5c269eb3ec7d333b.tar.gz
(PHP session_destroy) return the error condition from storage handler's
session_destroy method. Submitted by: juhl@eisenstein.dk
Diffstat (limited to 'ext/session/mod_files.c')
-rw-r--r--ext/session/mod_files.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c
index a4b7ed0a4d..c1f7ecc9ba 100644
--- a/ext/session/mod_files.c
+++ b/ext/session/mod_files.c
@@ -275,7 +275,9 @@ PS_DESTROY_FUNC(files)
if (!_ps_files_path_create(buf, sizeof(buf), data, key))
return FAILURE;
- V_UNLINK(buf);
+ if (V_UNLINK(buf) == -1) {
+ return FAILURE;
+ }
return SUCCESS;
}