]> granicus.if.org Git - php/commitdiff
fix execution order
authorSterling Hughes <sterling@php.net>
Sat, 6 Oct 2001 18:59:39 +0000 (18:59 +0000)
committerSterling Hughes <sterling@php.net>
Sat, 6 Oct 2001 18:59:39 +0000 (18:59 +0000)
ext/standard/filestat.c

index 0fed4bdd2d30a3565bb281e2428c28ebd388195f..382e08842b6c8cc79c081b619e86c1ffaccc3b40 100644 (file)
@@ -579,7 +579,7 @@ static void php_stat(const char *filename, php_stat_len filename_length, int typ
                BG(lsb).st_mode = 0; /* mark lstat buf invalid */
 #endif
                if (VCWD_STAT(BG(CurrentStatFile), &BG(sb)) == -1) {
-                       if (!(IS_LINK_OPERATION() && IS_EXISTS_CHECK(type)) || errno != ENOENT) { /* fileexists() test must print no error */
+                       if (!IS_LINK_OPERATION() && (!IS_EXISTS_CHECK(type) || errno != ENOENT)) { /* fileexists() test must print no error */
                                php_error(E_WARNING, "stat failed for %s (errno=%d - %s)", BG(CurrentStatFile), errno, strerror(errno));
                        }
                        efree(BG(CurrentStatFile));