summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-06-16 08:02:33 +0000
committerAndi Gutmans <andi@php.net>2000-06-16 08:02:33 +0000
commitbd900fb66b124f607685b5727917a45163b59706 (patch)
tree454732e26bcc3526bfee375f2052cdee7392a39f
parentae117480380fe45fd0485fd68865bc57a3a41458 (diff)
downloadphp-git-bd900fb66b124f607685b5727917a45163b59706.tar.gz
- Make Windows compile
-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 4e51ec0b19..2f96b16da5 100644
--- a/main/fopen_wrappers.c
+++ b/main/fopen_wrappers.c
@@ -329,7 +329,7 @@ PHPAPI FILE *php_fopen_primary_script(void)
length = strlen(PG(doc_root));
#ifdef PHP_WIN32
/* Check for absolute path. This should really use virtual cwd macros */
- if (IS_SLASH(*PG(doc_root) || (length >= 3 && PG(doc_root)[1] == ':' && IS_SLASH(PG(doc_root)[2]))) {
+ if (IS_SLASH(*PG(doc_root)) || (length >= 3 && PG(doc_root)[1] == ':' && IS_SLASH(PG(doc_root)[2]))) {
#else
if (IS_SLASH(*PG(doc_root))) {
#endif