Bug #79315 [Com]: ZipArchive::addFile doesn't honor start/length parameters

From: Date: Fri, 28 Feb 2020 10:23:46 +0000
Subject: Bug #79315 [Com]: ZipArchive::addFile doesn't honor start/length parameters
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225773@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79315&edit=1

 ID:                 79315
 Comment by:         remi@php.net
 Reported by:        remi@php.net
 Summary:            ZipArchive::addFile doesn't honor start/length
                     parameters
 Status:             Closed
 Type:               Bug
 Package:            Zip Related
 Operating System:   N/A
 PHP Version:        7.3.15
 Assigned To:        remi
 Block user comment: N
 Private report:     N

 New Comment:

Fix will be in 7.3.16, 7.4.4 and already in pecl extension 1.17.2


Previous Comments:
------------------------------------------------------------------------
[2020-02-28 09:36:39] 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:18] 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:30:01] 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:29:36] 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:05:04] 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



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=79315&edit=1


Thread (5 messages)

« previous php.bugs (#225773) next »