mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
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:
parent
403f352482
commit
ec78507bd4
3 changed files with 31 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue