From: Greg Beaver Date: Sun, 20 Apr 2008 00:24:01 +0000 (+0000) Subject: fix 98 of 105 failing tests on windows (real progress now) X-Git-Tag: RELEASE_2_0_0b1~316 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95fc6451f04d29a30d143086d53790f09ad8692f;p=php fix 98 of 105 failing tests on windows (real progress now) --- diff --git a/ext/phar/phar.c b/ext/phar/phar.c index 263436a6f1..f522e3c84f 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -1409,6 +1409,9 @@ static int phar_analyze_path(const char *fname, const char *ext, int ext_len, in old = *a; *a = '\0'; if ((realpath = expand_filepath(fname, NULL TSRMLS_CC))) { +#ifdef PHP_WIN32 + phar_unixify_path_separators(realpath, strlen(realpath)); +#endif if (zend_hash_exists(&(PHAR_GLOBALS->phar_fname_map), realpath, strlen(realpath))) { *a = old; efree(realpath);