]> granicus.if.org Git - php/commitdiff
fix 98 of 105 failing tests on windows (real progress now)
authorGreg Beaver <cellog@php.net>
Sun, 20 Apr 2008 00:24:01 +0000 (00:24 +0000)
committerGreg Beaver <cellog@php.net>
Sun, 20 Apr 2008 00:24:01 +0000 (00:24 +0000)
ext/phar/phar.c

index 263436a6f14a1e2e74be9cc253c6a573a457270e..f522e3c84fca6728582b48f4e5a534b0284f6b2e 100644 (file)
@@ -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);