From: Pierre Joye Date: Sat, 17 May 2014 03:50:01 +0000 (+0200) Subject: only used if HAVE_NOFOLLOW X-Git-Tag: POST_PHPNG_MERGE~328^2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ba3aec5f7762fc9be36af4efcbadbc605c3359c;p=php only used if HAVE_NOFOLLOW --- diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index dd9361b34e..2c2b0fa555 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -121,7 +121,9 @@ static void ps_files_close(ps_files *data) static void ps_files_open(ps_files *data, const char *key TSRMLS_DC) { char buf[MAXPATHLEN]; +#ifdef O_NOFOLLOW struct stat sbuf; +#endif if (data->fd < 0 || !data->lastkey || strcmp(key, data->lastkey)) { if (data->lastkey) {