From: Andi Gutmans Date: Fri, 31 Mar 2000 22:48:59 +0000 (+0000) Subject: - This shouldn't do any harm and might fix a problem with Win32 X-Git-Tag: php-4.0RC2~541 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1bab18a00c5b057fbc296ddf0abbec1cf17b4620;p=php - This shouldn't do any harm and might fix a problem with Win32 --- diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 0b99813760..ea6891f8a2 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -58,7 +58,7 @@ #endif #ifndef S_ISREG -#define S_ISREG(mode) (((mode)&S_IFMT) == S_IFREG) +#define S_ISREG(mode) (((mode)&S_IFMT) & S_IFREG) #endif #ifdef PHP_WIN32