fix all but 1 test on windows (yay)

This commit is contained in:
Greg Beaver 2008-04-20 04:19:13 +00:00
parent 54540385b8
commit ab45c16a61

View file

@ -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, '/');