cvs: php4 /ext/standard filestat.c
| From: | Sterling Hughes | Date: | Sat, 06 Oct 2001 18:59:39 +0000 |
| Subject: | cvs: php4 /ext/standard filestat.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-7705@lists.php.net to get a copy of this message | ||
sterling Sat Oct 6 14:59:39 2001 EDT
Modified files:
/php4/ext/standard filestat.c
Log:
fix execution order
Index: php4/ext/standard/filestat.c
diff -u php4/ext/standard/filestat.c:1.84 php4/ext/standard/filestat.c:1.85
--- php4/ext/standard/filestat.c:1.84 Sat Oct 6 14:55:09 2001
+++ php4/ext/standard/filestat.c Sat Oct 6 14:59:39 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filestat.c,v 1.84 2001/10/06 18:55:09 sterling Exp $ */
+/* $Id: filestat.c,v 1.85 2001/10/06 18:59:39 sterling Exp $ */
#include "php.h"
#include "safe_mode.h"
@@ -579,7 +579,7 @@
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));