ID: 47324 Updated by: paj...@php.net Reported By: kmteoh at hotmail dot com -Status: No Feedback +Status: Closed Bug Type: Zip Related Operating System: win32 only -w2k PHP Version: 5.2.9RC1 Assigned To: pajoye New Comment:
Keep waste days if you don't use recent versions. The bug has been fixed month ago. Previous Comments: ------------------------------------------------------------------------ [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> -------------------------------- ------------------------------------------------------------------------ [2009-03-02 22:45:53] paj...@php.net ok, I still need the files you are adding to debug this problem. But it works here, IIS5/6/7 ISAPI or FastCGI. ------------------------------------------------------------------------ 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/47324 -- Edit this bug report at http://bugs.php.net/?id=47324&edit=1