]> granicus.if.org Git - php/commitdiff
- This is the correct way of doing it
authorAndi Gutmans <andi@php.net>
Thu, 14 Dec 2000 23:05:31 +0000 (23:05 +0000)
committerAndi Gutmans <andi@php.net>
Thu, 14 Dec 2000 23:05:31 +0000 (23:05 +0000)
main/fopen_wrappers.c

index 752cd1ac5da241bcd69e3f0e2adfd6464a98868b..9f3ce6526c67753c161c79000b04c5499dc0cf1f 100644 (file)
@@ -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