From: Greg Beaver Date: Sun, 20 Apr 2008 04:19:13 +0000 (+0000) Subject: fix all but 1 test on windows (yay) X-Git-Tag: RELEASE_2_0_0b1~311 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab45c16a61a2de69ba7436bfbf07507cbf264e56;p=php fix all but 1 test on windows (yay) --- diff --git a/ext/phar/phar.c b/ext/phar/phar.c index 6b2b94ed1b..99fe3ddac2 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -1448,6 +1448,9 @@ static int phar_analyze_path(const char *fname, const char *ext, int ext_len, in if (!(realpath = expand_filepath(fname, NULL TSRMLS_CC))) { return FAILURE; } +#ifdef PHP_WIN32 + phar_unixify_path_separators(realpath, strlen(realpath)); +#endif a = strstr(realpath, fname) + ((ext - fname) + ext_len); *a = '\0'; slash = strrchr(realpath, '/');