From: Andi Gutmans Date: Wed, 25 Apr 2001 05:53:45 +0000 (+0000) Subject: - Another fix X-Git-Tag: php-4.0.6RC1~322 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef71855bc61d4c3a498377b5f4093495a5ad21ba;p=php - Another fix --- diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index 51f9b56409..33d688a614 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -488,8 +488,8 @@ static void php_stat(const char *filename, php_stat_len filename_length, int typ /* do lstat if the buffer is empty */ if (!BG(lsb).st_mode) { - if (V_LSTAT(BG(CurrentStatFile), &BG(lsb)) == -1) { - php_error(E_NOTICE, "lstat failed for %s (errno=%d - %s)", BG(CurrentStatFile), errno, strerror(errno)); + if (V_LSTAT(filename, &BG(lsb)) == -1) { + php_error(E_NOTICE, "lstat failed for %s (errno=%d - %s)", filename, errno, strerror(errno)); RETURN_FALSE; } }