From 95fc6451f04d29a30d143086d53790f09ad8692f Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sun, 20 Apr 2008 00:24:01 +0000 Subject: [PATCH] fix 98 of 105 failing tests on windows (real progress now) --- ext/phar/phar.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.50.1