diff options
author | Wez Furlong <wez@php.net> | 2003-02-13 17:20:20 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2003-02-13 17:20:20 +0000 |
commit | cd7d762b79f870848ac83a6a134a554d1d5f7063 (patch) | |
tree | d80f2e3e9c358c7941469b90d54eea1741275663 | |
parent | 586672fd164c83f9e2fea8edad83716590a0fc33 (diff) | |
download | php-git-cd7d762b79f870848ac83a6a134a554d1d5f7063.tar.gz |
A probable cure for many getcwd/relative include related problems for win32.
-rwxr-xr-x | main/streams.c | 4 |
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; } } |