Edit report at http://bugs.php.net/bug.php?id=52830&edit=1
ID: 52830 User updated by: johannes_schultz at gmx dot de Reported by: johannes_schultz at gmx dot de Summary: PHP hangs on various setups when trying to read from a corrupted ZIP file -Status: Feedback +Status: Open Type: Bug Package: Zip Related Operating System: Windows, Debian PHP Version: Irrelevant Block user comment: N New Comment: Seems to work with the current snapshot, thanks. No I wonder when this fix will be available through the Debian update... Previous Comments: ------------------------------------------------------------------------ [2010-09-14 08:12:28] ahar...@php.net Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ This sounds like bug #44382, which was fixed some time ago, and I can't reproduce it on a current version of PHP. ------------------------------------------------------------------------ [2010-09-13 21:47:22] johannes_schultz at gmx dot de Description: ------------ I have a broken ZIP file which makes PHP hang on various setups on both Windows and Linux (Debian): http://modplug.soonlabel.com/music/1000/1342-The_Mighty_Roofus-Trondheim.mp3.zip If the CHECKCONS flag is involved, it hangs already when opening the archive, else it will hang when trying to extract the file. Test script: --------------- $zipRead = new ZipArchive; $res = $zipRead->open("1342-The_Mighty_Roofus-Trondheim.mp3.zip", ZipArchive::CHECKCONS); // this will hang PHP Expected result: ---------------- Returning an error Actual result: -------------- PHP hangs ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52830&edit=1