From: Andi Gutmans Date: Thu, 14 Dec 2000 23:05:31 +0000 (+0000) Subject: - This is the correct way of doing it X-Git-Tag: php-4.0.5RC1~893 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11e5f9bd44f711f20d5c85386d859738ae470b80;p=php - This is the correct way of doing it --- diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 752cd1ac5d..9f3ce6526c 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