php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79315 ZipArchive::addFile doesn't honor start/length parameters
Submitted: 2020-02-28 09:05 UTC Modified: 2020-02-28 09:14 UTC
From: remi@php.net Assigned: remi (profile)
Status: Closed Package: Zip Related
PHP Version: 7.3.15 OS: N/A
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: remi@php.net
New email:
PHP Version: OS:

 

 [2020-02-28 09:05 UTC] remi@php.net
Description:
------------
Full content of the file always added

Test script:
---------------
$zip->addFile('foo', 'mini.txt', 12, 34)


Expected result:
----------------
Partial content added

Actual result:
--------------
Full file added


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-02-28 09:05 UTC] remi@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: remi
 [2020-02-28 09:14 UTC] remi@php.net
-Summary: ZipArchive::addFile don't hornor start/length parameters +Summary: ZipArchive::addFile doesn't honor start/length parameters
 [2020-02-28 09:29 UTC] remi@php.net
Automatic comment on behalf of remi
Revision: http://git.php.net/?p=php-src.git;a=commit;h=5b2d4c0eccafcd648e574012a1c5331d6e1b1a4f
Log: Fix #79315 ZipArchive::addFile doesn't honor start/length parameters
 [2020-02-28 09:29 UTC] remi@php.net
-Status: Assigned +Status: Closed
 [2020-02-28 09:30 UTC] remi@php.net
Automatic comment on behalf of remi
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d31fc591e0a852c69b81b3311b3609221f66c445
Log: Fix #79315 ZipArchive::addFile doesn't honor start/length parameters
 [2020-02-28 09:36 UTC] remi@php.net
Automatic comment on behalf of remi
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d31fc591e0a852c69b81b3311b3609221f66c445
Log: Fix #79315 ZipArchive::addFile doesn't honor start/length parameters
 [2020-02-28 09:36 UTC] remi@php.net
Automatic comment on behalf of remi
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d31fc591e0a852c69b81b3311b3609221f66c445
Log: Fix #79315 ZipArchive::addFile doesn't honor start/length parameters
 [2020-02-28 10:23 UTC] remi@php.net
Fix will be in 7.3.16, 7.4.4 and already in pecl extension 1.17.2
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 27 16:01:27 2024 UTC