Bug #52091 [Asn->Opn]: ZipArchive: CRC32 errors / corrupted archives not reported

From: Date: Tue, 24 Oct 2017 07:38:59 +0000
Subject: Bug #52091 [Asn->Opn]: ZipArchive: CRC32 errors / corrupted archives not reported
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212134@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=52091&edit=1 ID: 52091 Updated by: kalle@php.net Reported by: hardcorevenom at gmx dot de Summary: ZipArchive: CRC32 errors / corrupted archives not reported -Status: Assigned +Status: Open Type: Bug Package: Zip Related Operating System: Linux PHP Version: 5.2.13 -Assigned To: pajoye +Assigned To: Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2016-09-06 15:30:07] cmb@php.net I can reproduce that ::extractTo() doesn't fail if the CRC32 of the file is wrong. However, passing ZipArchive::CHECKCONS to ::open() lets this method fail with ZipArchive::ER_INCONS, so it seems the behavior is desired. IMO, that's a documentation issue. ------------------------------------------------------------------------ [2011-01-31 16:54:30] pajoye@php.net @schmale at froglogic dot com If it is not the same then please open a new bug. Please provide both a script and an archive to reproduce your problem. ------------------------------------------------------------------------ [2011-01-31 16:27:20] schmale at froglogic dot com Not the same bug, but related, as "ZipArchive::extractTo" seems to fail in giving a meaningful return value at all. I used the method and specified an existing directory without write privileges, and got TRUE as return value (although "ZipArchive::extractTo" didn't do anything, due to lack of write privileges). ------------------------------------------------------------------------ [2010-06-23 18:38:26] hardcorevenom at gmx dot de File "_test.php" is bad in this archive http://www-user.tu-chemnitz.de/~womar/test/zipview/test_broken.zip Can be seen here: http://www-user.tu-chemnitz.de/~womar/test/zipview/ziptest.php?file=test_broken.zip ------------------------------------------------------------------------ [2010-06-20 17:57:17] pajoye@php.net Do you have an archive to reproduce this problem (small if possible :)? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=52091 -- Edit this bug report at https://bugs.php.net/bug.php?id=52091&edit=1

« previous php.bugs (#212134) next »