dirname() should not normalize paths

This is the BC piece with the case where dirname() is used with an URL.
This commit is contained in:
Anatol Belski 2017-01-24 17:56:00 +01:00
parent 403f352482
commit ec78507bd4
3 changed files with 31 additions and 3 deletions

View file

@ -445,7 +445,8 @@ PW32IO size_t php_win32_ioutil_dirname(char *path, size_t len)
start = path;
startw = pathw = php_win32_ioutil_conv_any_to_w(path, len, &pathw_len);
/* Don't really care about the path normalization, pure parsing here. */
startw = pathw = php_win32_cp_conv_any_to_w(path, len, &pathw_len);
if (!pathw) {
return 0;
}