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; } }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php