summaryrefslogtreecommitdiff
path: root/main/streams.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/streams.c')
-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;
}
}