summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-12-14 23:05:31 +0000
committerAndi Gutmans <andi@php.net>2000-12-14 23:05:31 +0000
commit11e5f9bd44f711f20d5c85386d859738ae470b80 (patch)
treea6a5b12d265b29df5e9f0cd455d3d3892be0839c /main
parent3b20a425c955069119a01e37139ed5db4ae63693 (diff)
downloadphp-git-11e5f9bd44f711f20d5c85386d859738ae470b80.tar.gz
- This is the correct way of doing it
Diffstat (limited to 'main')
-rw-r--r--main/fopen_wrappers.c2
1 files changed, 1 insertions, 1 deletions
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