On Win32 make PHP treat UNC paths as absolute paths, this should solve bugs

such as #20831. Thanks to Wez Furlong for isolating the problem.
This commit is contained in:
Ilia Alshanetsky 2002-12-11 00:32:33 +00:00
parent a6e9674bfd
commit 9a24983487

View File

@ -58,7 +58,7 @@ typedef unsigned short mode_t;
*/
#define COPY_WHEN_ABSOLUTE(path) 2
#define IS_ABSOLUTE_PATH(path, len) \
(len >= 2 && isalpha(path[0]) && path[1] == ':')
(len >= 2 && ((isalpha(path[0]) && path[1] == ':') || (IS_SLASH(path[0]) && IS_SLASH(path[1]))))
#define IS_UNC_PATH(path, len) \
(len >= 2 && IS_SLASH(path[0]) && IS_SLASH(path[1]))