diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2014-01-30 14:16:05 +0900 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2014-01-30 14:16:05 +0900 |
commit | b1c0614eccda844ab505cd4d2ba90dac671d1737 (patch) | |
tree | 6d08f0cd8cf26d099d5945b36d84f85dd0f795c8 /ext/session/mod_files.c | |
parent | da84f3af751aa9bbf76bc22924a488f981d47088 (diff) | |
parent | f5e097d1ed5ab34cbaac49dee542b0af92f941f5 (diff) | |
download | php-git-b1c0614eccda844ab505cd4d2ba90dac671d1737.tar.gz |
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
Fixed bug data->fd not set to -1 for open_basedir failure.
Diffstat (limited to 'ext/session/mod_files.c')
-rw-r--r-- | ext/session/mod_files.c | 2 |
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; } } |