Bug #70311 [NEW]: ZipArchive not generating output

From: Date: Thu, 20 Aug 2015 11:56:47 +0000
Subject: Bug #70311 [NEW]: ZipArchive not generating output
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195371@lists.php.net to get a copy of this message
From: bergmann at berlitec dot de Operating system: Mac OS X 10.10.4 PHP version: 5.6.12 Package: Zip Related Bug Type: Bug Bug description:ZipArchive not generating output Description: ------------ ZipArchive doesn't produce the desired results on my system. I can see a temporary zipfile created but it disappears as soon as my script exits without producing the final zip. phpinfo() PHP Version 5.6.12 Zip enabled Extension Version $Id: f9f12af1274212b9f22867472e4aa57eab4bb4cf $ Zip version 1.12.5 Libzip version 0.11.2 I was originally executing a phing ZipTask but I made a quick test that revealed ZipArchive itself is bugged for me. Apache mod and cli both are affected. I tested the behaviour with another 5.4.x installation on my system that ran just fine. Test script: --------------- <?php $a = new ZipArchive; var_dump( $a->open(__DIR__ . '/test.zip', ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE) ); $a->addFromString('test.txt', 'test'); var_dump( $a->close() ); Expected result: ---------------- boolean(true) boolean(true) test.zip created with a single file test.txt Actual result: -------------- boolean(true) boolean(true) no zip generated, temporary zip pops up and disappears, no zip in target directory or above, no zip in the trash -- Edit bug report at https://bugs.php.net/bug.php?id=70311&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70311&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70311&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70311&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70311&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70311&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70311&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70311&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70311&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70311&r=support Expected behavior: https://bugs.php.net/fix.php?id=70311&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70311&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70311&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70311&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70311&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70311&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70311&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70311&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70311&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70311&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70311&r=mysqlcfg

« previous php.bugs (#195371) next »