summaryrefslogtreecommitdiff
path: root/ext/standard/filestat.c
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2001-10-06 18:59:39 +0000
committerSterling Hughes <sterling@php.net>2001-10-06 18:59:39 +0000
commitaf1c7070f7b2635eb4b56de1d8b4bf3e0b18234e (patch)
tree073fc6bed89a996b382ffbe0e65ac22343b719fc /ext/standard/filestat.c
parent16da751e3bff424515f421a070b31fdae2304010 (diff)
downloadphp-git-af1c7070f7b2635eb4b56de1d8b4bf3e0b18234e.tar.gz
fix execution order
Diffstat (limited to 'ext/standard/filestat.c')
-rw-r--r--ext/standard/filestat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c
index 0fed4bdd2d..382e08842b 100644
--- a/ext/standard/filestat.c
+++ b/ext/standard/filestat.c
@@ -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));