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:
Gina Peter Banyard 2024-08-14 12:35:47 +01:00 committed by GitHub
parent 2054c3d238
commit 02177848e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 7 additions and 8 deletions

View file

@ -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);