summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-02-13 17:20:20 +0000
committerWez Furlong <wez@php.net>2003-02-13 17:20:20 +0000
commitcd7d762b79f870848ac83a6a134a554d1d5f7063 (patch)
treed80f2e3e9c358c7941469b90d54eea1741275663
parent586672fd164c83f9e2fea8edad83716590a0fc33 (diff)
downloadphp-git-cd7d762b79f870848ac83a6a134a554d1d5f7063.tar.gz
A probable cure for many getcwd/relative include related problems for win32.
-rwxr-xr-xmain/streams.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/streams.c b/main/streams.c
index 4be5f9ef82..097b815564 100755
--- a/main/streams.c
+++ b/main/streams.c
@@ -1691,12 +1691,12 @@ PHPAPI php_stream *_php_stream_fopen_with_path(char *filename, char *mode, char
filename_length = strlen(filename);
/* Relative path open */
- if (*filename == '.' && (*(filename+1) == '/' || *(filename+1) == '.')) {
+ if (*filename == '.' && (IS_SLASH(filename[1]) || filename[1] == '.')) {
/* further checks, we could have ....... filenames */
ptr = filename + 1;
if (*ptr == '.') {
while (*(++ptr) == '.');
- if (*ptr != '/') { /* not a relative path after all */
+ if (!IS_SLASH(*ptr)) { /* not a relative path after all */
goto not_relative_path;
}
}