]> granicus.if.org Git - php/commitdiff
- Another fix
authorAndi Gutmans <andi@php.net>
Wed, 25 Apr 2001 05:53:45 +0000 (05:53 +0000)
committerAndi Gutmans <andi@php.net>
Wed, 25 Apr 2001 05:53:45 +0000 (05:53 +0000)
ext/standard/filestat.c

index 51f9b564091070df768cf74e35b350edc42a2d0f..33d688a61456ab8cd2073269a564dd8cb2cde751 100644 (file)
@@ -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;
                        }
                }