mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-5.6' into PHP-7.0
Conflicts: ext/zip/php_zip.c
This commit is contained in:
commit
33417bf409
1 changed files with 1 additions and 1 deletions
|
@ -2668,7 +2668,7 @@ static ZIPARCHIVE_METHOD(extractTo)
|
|||
|
||||
for (i = 0; i < filecount; i++) {
|
||||
char *file = (char*)zip_get_name(intern, i, ZIP_FL_UNCHANGED);
|
||||
if (!php_zip_extract_file(intern, pathto, file, strlen(file))) {
|
||||
if (!file || !php_zip_extract_file(intern, pathto, file, strlen(file))) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue