mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
fix all but 1 test on windows (yay)
This commit is contained in:
parent
54540385b8
commit
ab45c16a61
1 changed files with 3 additions and 0 deletions
|
@ -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, '/');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue