mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Replace uses of php_dirname() with zend_dirname() (#15393)
This removes some needs to include the php_string.h header
This commit is contained in:
parent
2054c3d238
commit
02177848e4
5 changed files with 7 additions and 8 deletions
|
@ -171,7 +171,7 @@ static int php_zip_extract_file(struct zip * za, char *dest, const char *file, s
|
|||
is_dir_only = 1;
|
||||
} else {
|
||||
memcpy(file_dirname, path_cleaned, path_cleaned_len);
|
||||
dir_len = php_dirname(file_dirname, path_cleaned_len);
|
||||
dir_len = zend_dirname(file_dirname, path_cleaned_len);
|
||||
|
||||
if (!dir_len || (dir_len == 1 && file_dirname[0] == '.')) {
|
||||
len = spprintf(&file_dirname_fullpath, 0, "%s", dest);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue