summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2014-01-30 14:16:47 +0900
committerYasuo Ohgaki <yohgaki@php.net>2014-01-30 14:16:47 +0900
commit53e302356605c75673bed00037b94a11d6dcd8fc (patch)
tree3190e377ec073e314bedab4dde0b401d7a8a4b3e
parent43432c12f176d42d35c82345caef23fb016cec82 (diff)
parentb1c0614eccda844ab505cd4d2ba90dac671d1737 (diff)
downloadphp-git-53e302356605c75673bed00037b94a11d6dcd8fc.tar.gz
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5: Fixed bug data->fd not set to -1 for open_basedir failure.
-rw-r--r--ext/session/mod_files.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c
index 4d5a18b36b..47140436e7 100644
--- a/ext/session/mod_files.c
+++ b/ext/session/mod_files.c
@@ -145,10 +145,12 @@ static void ps_files_open(ps_files *data, const char *key TSRMLS_DC)
if (fstat(data->fd, &sbuf)) {
close(data->fd);
+ data->fd = -1;
return;
}
if (S_ISLNK(sbuf.st_mode) && php_check_open_basedir(buf TSRMLS_CC)) {
close(data->fd);
+ data->fd = -1;
return;
}
}