Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45064 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96764 invoked from network); 23 Jul 2009 13:29:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2009 13:29:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.210 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.220.210 mail-fx0-f210.google.com Received: from [209.85.220.210] ([209.85.220.210:55536] helo=mail-fx0-f210.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F0/04-11537-CB5686A4 for ; Thu, 23 Jul 2009 09:29:33 -0400 Received: by mail-fx0-f210.google.com with SMTP id 6so835451fxm.23 for ; Thu, 23 Jul 2009 06:29:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=QR3lDt19nq4X9ewXsxARn7zBsd4qqc1/O3sBBTcbVpQ=; b=mSmQ5nvD+E3xL9U+pVCODB1HpjcQrnY6G9lgLuwfmC1zn7U7cMFh+o18ueKPUaUP6I aWYmtGrcdaYcpSzpJ1zmGCTGlKTa7rF/sIAcgYS8ysrfW/NuNPXev9rzo55vawRH9GmM nYUiYmO6vdFFgSG+/xl+5ijd5vwf4vmm01d+o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=A4HgvvwhDoLNJUEFXAY2P5xoK9oQ3nkaSJiW39thmMP6r8mQXpT4H0WWpVJqIjsOKZ hAj6iszkOsb9Ak8T+DPPpjVK8a02avJgWGgglwxsYJ8T1TrodxwS9biWbjGkhRYQDAwT fGMRZeK/Qfj0Wkn+SXGEauZh239rJLgdCetrs= MIME-Version: 1.0 Received: by 10.86.68.18 with SMTP id q18mr1864735fga.68.1248355771515; Thu, 23 Jul 2009 06:29:31 -0700 (PDT) In-Reply-To: <8d3051340907230620t27c82e8eve9e21e9ae06604e0@mail.gmail.com> References: <8d3051340907230620t27c82e8eve9e21e9ae06604e0@mail.gmail.com> Date: Thu, 23 Jul 2009 15:29:31 +0200 Message-ID: To: =?ISO-8859-1?B?QWxw4XIgVPZy9ms=?= Cc: PHP Development Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] ZipArchive problems. Possible bug (Livelock) From: pierre.php@gmail.com (Pierre Joye) hi, Please open a bug report here: http://bugs.php.net with a script and an archive (if necessary) to reproduce your problem. Cheers, On Thu, Jul 23, 2009 at 3:20 PM, Alp=E1r T=F6r=F6k wr= ote: > Hi all, > > The short version is : on a corrupted zip, getStream never returns, > and eats up the whole processor. CHECKCONS doesn't help. > > The long version: > =A0I have scripts that process data. Data arrives as zip archives. The > data import process halts, eating up all server CPU. I have analyzed > the incoming zips =A0using the test option of 7zip [1] , i found that > the the problem occurs with zips that contain one or more files for > witch 7zip reports that CRC has failed. These zips open without an > error, and once i try to get stream, for the faulty file, the call > never returns, and eats up the cpu. I tried to use the =A0 CHECKCON flag > at opening, in the hope that the zip won't open, and thus i can just > throw it away, but it doesn't seem to help. Looking in the source i > wound on line 1174 of php_zip.c [2] , that no flag parameter is passed > to zip_open. I don't have a developement environment, so i can > recompile / and or debug this problem. > > I have tested with 5.2.10 > > > > [1] http://www.7-zip.org/ - The 7zip homepage > [2] the line reads : rsrc_int->za =3D zip_open(resolved_path, 0, &err); > -- > Alpar Torok > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Pierre http://blog.thepimp.net | http://www.libgd.org