Edit report at http://bugs.php.net/bug.php?id=47324&edit=1
ID: 47324 Comment by: selosindis at gmail dot com Reported by: kmteoh at hotmail dot com Summary: still not working after trying most versions Status: Closed Type: Bug Package: Zip Related Operating System: win32 only -w2k PHP Version: 5.2.9RC1 Assigned To: pajoye Block user comment: N New Comment: I noticed this bug was closed a long time ago, yet the examples from php.net (listed here) are still not working. There was no actual resolution posted here (that I could see), so if it is in fact fixed, could you please explain the process to get it working? I'm running php 5.2.9 and the latest version of ZipArchive. The files always end up with "zipName.zip.39u525" or something similar. Thanks for your help! ~Scott Previous Comments: ------------------------------------------------------------------------ [2009-08-19 07:44:51] paj...@php.net Keep waste days if you don't use recent versions. The bug has been fixed month ago. ------------------------------------------------------------------------ [2009-08-19 07:22:50] jw328 at gmail dot com Exactly the same issue - I suspect its environment related. Mine is: IIS6, Win2003, Isapi from 5.2.8. Have tried php_zip.dll from 5.2.8 and 5.2.10 - both are v1.8.11 and siplay the same behaviour. Same issue looks as though its been occurring since 2006. Couldn't get simpler code to reproduce (invoked from browser): error_reporting(E_ALL); unlink("./a.zip"); $zip = new ZipArchive(); $filename = "./a.zip"; if (!$zip->open($filename, ZIPARCHIVE::CREATE)) { exit("cannot open <$filename>\n"); } else { echo "file <$filename> OK\n"; } $zip->addFromString("ma.txt", "0123456789"); var_dump($zip->close()); var_dump($zip); Having wasted the day on this I will use another library/exe. ------------------------------------------------------------------------ [2009-04-05 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2009-03-28 15:51:04] paj...@php.net I've really no idea yet what's wrong. We have made some bug fixes lately, can you try again a 5.2/5.3 snapshot please? ------------------------------------------------------------------------ [2009-03-28 15:03:11] ivan3k-sc1 at yahoo dot com dot ar I have the same problem trying to add a file, no mather its location. Other files are ok. this is the content of the file ------------------------------- <? require_once("inc/core.php"); restore_error_handler(); ?> <hr> <?$db = Db::getDbConnection();?> Probando Conexión a BD: <?=($db->IsConnected() ? "OK" : "ERROR");?> <hr> -------------------------------- ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=47324 -- Edit this bug report at http://bugs.php.net/bug.php?id=47324&edit=1