cvs: /php4 fopen-wrappers.c
| From: | Andi Gutmans | Date: | Fri, 31 Mar 2000 22:49:29 +0000 |
| Subject: | cvs: /php4 fopen-wrappers.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-12964@lists.php.net to get a copy of this message | ||
andi Fri Mar 31 14:49:29 2000 EDT
Modified files:
/php4 fopen-wrappers.c
Log:
- This shouldn't do any harm and might fix a problem with Win32
Index: php4/fopen-wrappers.c
diff -u php4/fopen-wrappers.c:1.49 php4/fopen-wrappers.c:1.50
--- php4/fopen-wrappers.c:1.49 Thu Mar 30 14:41:13 2000
+++ php4/fopen-wrappers.c Fri Mar 31 14:48:59 2000
@@ -16,7 +16,7 @@
| Jim Winstead <jimw@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: fopen-wrappers.c,v 1.49 2000/03/30 22:41:13 andi Exp $ */
+/* $Id: fopen-wrappers.c,v 1.50 2000/03/31 22:48:59 andi Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -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