cvs: php4 /main streams.c

From: Date: Thu, 13 Feb 2003 17:20:21 +0000
Subject: cvs: php4 /main streams.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-18783@lists.php.net to get a copy of this message
wez Thu Feb 13 12:20:21 2003 EDT Modified files: /php4/main streams.c Log: A probable cure for many getcwd/relative include related problems for win32. Index: php4/main/streams.c diff -u php4/main/streams.c:1.152 php4/main/streams.c:1.153 --- php4/main/streams.c:1.152 Thu Feb 13 11:22:03 2003 +++ php4/main/streams.c Thu Feb 13 12:20:20 2003 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: streams.c,v 1.152 2003/02/13 16:22:03 iliaa Exp $ */ +/* $Id: streams.c,v 1.153 2003/02/13 17:20:20 wez Exp $ */ #define _GNU_SOURCE #include "php.h" @@ -1691,12 +1691,12 @@ 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; } }

« previous php.cvs (#18783) next »