|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patcheszip_stream_errors_reported.patch (last revision 2011-02-01 12:20 UTC by rquadling@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-27 12:39 UTC] pajoye@php.net
[2009-08-11 15:12 UTC] svn@php.net
[2009-08-11 17:11 UTC] svn@php.net
[2009-08-12 08:36 UTC] pajoye@php.net
[2011-02-01 13:19 UTC] rquadling@php.net
-Assigned To:
+Assigned To: rquadling
[2011-02-01 13:19 UTC] rquadling@php.net
[2011-02-01 13:20 UTC] rquadling@php.net
[2011-02-01 13:22 UTC] rquadling@php.net
-Status: Closed
+Status: Re-Opened
-Assigned To: rquadling
+Assigned To:
[2011-02-01 13:22 UTC] rquadling@php.net
[2011-02-01 14:59 UTC] cataphract@php.net
-Assigned To:
+Assigned To: cataphract
[2011-02-01 15:43 UTC] cataphract@php.net
[2011-02-01 15:44 UTC] cataphract@php.net
[2011-02-01 15:44 UTC] cataphract@php.net
-Status: Re-Opened
+Status: Closed
[2011-02-07 16:12 UTC] pajoye@php.net
-Status: Closed
+Status: Assigned
[2011-02-07 16:12 UTC] pajoye@php.net
[2011-02-07 16:13 UTC] pajoye@php.net
[2011-02-07 16:21 UTC] pajoye@php.net
-Status: Assigned
+Status: Closed
[2011-02-07 16:21 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 22:00:02 2025 UTC |
Description: ------------ Opening a damaged zip archive (7z reports CRC failed for the faulty file), feof never return true, the script blocks, causing high CPU usage. Please contact me to get a zip that produces this problem. I don't see how can i attach it here Reproduce code: --------------- $o = new ZipArchive(); if (! $o->open('test.zip',ZipArchive::CHECKCONS)) { exit ('error can\'t open'); } $o->getStream('file2'); // this file is ok echo "OK"; $r = $o->getStream('file1'); // this file has a wrong crc while (! feof($r)) { fread($r,1024); } echo "never here\n"; Expected result: ---------------- The script either reads the file ignoring the crc error, or reports the error, but finishes. Actual result: -------------- the script never ends, and uses up the CPU