Close returns false on large file trees
| Bug #64342 | ZipArchive::Close returns false on large file trees | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2013-03-03 18:42 UTC | Modified: | 2013-03-21 20:00 UTC |
|
||||||||||
| From: | kolan_n at mail dot ru | Assigned: | ab (profile) | |||||||||||
| Status: | Closed | Package: | Zip Related | |||||||||||
| PHP Version: | 5.4.12 | OS: | Windows | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2013-03-03 18:42 UTC] kolan_n at mail dot ru
Description: ------------ If you try to archive large file trees using ZipArchive you get false at ZipArchive::close(). ZipArchive::getStatusString says about "unknown error" Test script: --------------- install https://github.com/KOLANICH/PHP-Backuper and dBug (or comment all "new dBug" in files, for example, with Notepad++) download any archive, containing "large" tree, for example Drupal, and unpack it write <? require_once("Backuper.php"); $b=new Backuper( array( 'backup'=>array( "FileTree"=>array( "unpackedArchivePath" ) ) ) ); $b->makeBackup(); ?> and launch you will see that it doesn't work the problem is on the https://github.com/KOLANICH/PHP-Backuper/blob/master/Backuper.php#L136 , $this->zip->close() returns false and the files would not be archivated. Expected result: ---------------- $this->zip->close() returns true and the files are archivated Actual result: -------------- $this->zip->close() returns false and the files are not archivated
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2013-03-12 13:25 UTC] kolan_n at mail dot ru
[2013-03-21 18:17 UTC] ab@php.net
[2013-03-21 18:17 UTC] ab@php.net
-Status: Open +Status: Feedback
[2013-03-21 18:34 UTC] kolan_n at mail dot ru
-Status: Feedback +Status: Open
[2013-03-21 18:34 UTC] kolan_n at mail dot ru
[2013-03-21 18:43 UTC] pajoye@php.net
[2013-03-21 19:29 UTC] kolan_n at mail dot ru
-Status: Feedback +Status: Closed
[2013-03-21 20:00 UTC] pajoye@php.net
[2013-03-21 20:00 UTC] pajoye@php.net
-Status: Closed +Status: Assigned -Assigned To: +Assigned To: ab
[2013-04-10 18:52 UTC] ab@php.net
-Status: Assigned +Status: Closed