Edit report at https://bugs.php.net/bug.php?id=52091&edit=1
ID: 52091
Updated by: cmb@php.net
Reported by: hardcorevenom at gmx dot de
Summary: ZipArchive: CRC32 errors / corrupted archives not
reported
Status: Assigned
Type: Bug
Package: Zip Related
Operating System: Linux
PHP Version: 5.2.13
Assigned To: pajoye
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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 :)?
------------------------------------------------------------------------
[2010-06-16 00:35:49] hardcorevenom at gmx dot de
"Actual result" should be
CRC32 errors are reported not always.
------------------------------------------------------------------------
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