From 11e5f9bd44f711f20d5c85386d859738ae470b80 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Thu, 14 Dec 2000 23:05:31 +0000 Subject: [PATCH] - This is the correct way of doing it --- main/fopen_wrappers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0