summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2020-02-28 10:29:30 +0100
committerRemi Collet <remi@php.net>2020-02-28 10:29:30 +0100
commit165d38a38d99817598dd920b4c64a0fdc12808da (patch)
tree9025fcd07255bda9722ae6f6d1691506915819db /ext/zip/php_zip.c
parentc5e8c25dda0c98ec16b6386a23ed6d2a9e5df0b0 (diff)
parent3725faa3dbb598e2fe7d522c69354f735ef99d9f (diff)
downloadphp-git-165d38a38d99817598dd920b4c64a0fdc12808da.tar.gz
Merge branch 'PHP-7.4'
* PHP-7.4: NEWS Fix #79315 ZipArchive::addFile doesn't honor start/length parameters
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r--ext/zip/php_zip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c
index eadbd0e76e..e2be7fc668 100644
--- a/ext/zip/php_zip.c
+++ b/ext/zip/php_zip.c
@@ -1747,7 +1747,8 @@ static ZIPARCHIVE_METHOD(addFile)
entry_name_len = ZSTR_LEN(filename);
}
- if (php_zip_add_file(intern, ZSTR_VAL(filename), ZSTR_LEN(filename), entry_name, entry_name_len, 0, 0) < 0) {
+ if (php_zip_add_file(intern, ZSTR_VAL(filename), ZSTR_LEN(filename),
+ entry_name, entry_name_len, offset_start, offset_len) < 0) {
RETURN_FALSE;
} else {
RETURN_TRUE;