Re: Bug #13653 Updated: ZIP is broken

From: Date: Fri, 12 Oct 2001 14:03:04 +0000
Subject: Re: Bug #13653 Updated: ZIP is broken
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-67856@lists.php.net to get a copy of this message
Sorry for that, you really need a preview page there (I changed the category by mistake and only noticed it second after I hit the submit button, I wasn't sure if it sent it or not) Sagi On Friday 12 October 2001 15:55, derick@php.net wrote: > ID: 13653 > Updated by: derick > Reported By: sagi@boom.org.il > Old Status: Open > Status: Bogus > Bug Type: ZZiplib Related > Operating System: Linux > PHP Version: 4.0.6 > New Comment: > > Submitted twice > > Previous Comments: > ------------------------------------------------------------------------ > > [2001-10-12 09:53:38] sagi@boom.org.il > > Hi, > > Seems like the ZIP extension is broken in php4.0.6 and > php4.0.7-rc3. I just compiled the lastest CVS version and it > seems to have the same problem: > > (example code, taken from the manual): > [sagi@domino designs]$ uname -a > Linux domino.lan.boom.org.il 2.4.10 #1 Wed Oct 3 10:57:39 > IST 2001 i686 unknown > [sagi@domino designs]$ php -v > 4.0.8-dev > [sagi@domino designs]$ cat zip.php > <?php > > $zip = zip_open("/tmp/temp.zip"); > > if ($zip) { > echo "Ok, entering while..\n"; > > while ($zip_entry = zip_read($zip)) { > echo "In while..\n"; > > echo "Name: " . > zip_entry_name($zip_entry) . "\n"; > echo "Actual Filesize: " . > zip_entry_filesize($zip_entry) . "\n"; > echo "Compressed Size: " . > zip_entry_compressedsize($zip_entry) . "\n"; > echo "Compression Method: " . > zip_entry_compressionmethod($zip_entry) . "\n"; > > if (zip_entry_open($zip, $zip_entry, "r")) { > echo "File Contents:\n"; > $buf = zip_entry_read($zip_entry, > zip_entry_filesize($zip_entry)); > echo "$buf\n"; > > zip_entry_close($zip_entry); > } > echo "\n"; > > } > > zip_close($zip); > > } > > ?> > [sagi@domino designs]$ php zip.php > X-Powered-By: PHP/4.0.8-dev > Content-type: text/html > > Ok, entering while.. > Segmentation fault > [sagi@domino designs]$ > > The zip file is ok: > [sagi@domino dododo]$ unzip /tmp/temp.zip > Archive: /tmp/temp.zip > creating: yellowbluesagi/ > inflating: yellowbluesagi/header.php > inflating: yellowbluesagi/footer.php > inflating: yellowbluesagi/index.html

« previous php.dev (#67856) next »