From: Sterling Hughes Date: Wed, 11 Sep 2002 22:40:56 +0000 (+0000) Subject: max this use the virtual_filepath() function and feel all threadsafe and X-Git-Tag: MODERN_SYMMETRIC_SESSION_BEHAVIOUR_20021003~364 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b34bec20a7b83b67c8506e5c8a1bdd16d6fec665;p=php max this use the virtual_filepath() function and feel all threadsafe and wholesome inside --- diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index 4195aa0f8e..85b28bfe9f 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -570,6 +570,19 @@ static void php_stat(const char *filename, php_stat_len filename_length, int typ } #ifndef PHP_WIN32 +#if VIRTUAL_DIR + do { + char *tmpname; + + if (virtual_filepath(filename, &tmpname TSRMLS_CC)) { + php_error(E_WARNING, "Cannot get the virtual filepath of %s\n", filename); + RETURN_FALSE; + } + + filename = tmpname; + } while (0); +#endif + switch (type) { case FS_IS_W: RETURN_BOOL (!access (filename, W_OK));