]> granicus.if.org Git - php/commitdiff
- This shouldn't do any harm and might fix a problem with Win32
authorAndi Gutmans <andi@php.net>
Fri, 31 Mar 2000 22:48:59 +0000 (22:48 +0000)
committerAndi Gutmans <andi@php.net>
Fri, 31 Mar 2000 22:48:59 +0000 (22:48 +0000)
main/fopen_wrappers.c

index 0b99813760a279f97e7ae3e4c04970d628d0bf04..ea6891f8a2f2bed941468ae96a012c4a4b159c2d 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