ID: 47324 User updated by: kmteoh at hotmail dot com Reported By: kmteoh at hotmail dot com -Status: Feedback +Status: Open Bug Type: Zip Related Operating System: w2k PHP Version: 5.2.9RC1 Assigned To: pajoye New Comment:
i have tried CREATE and OVERWRITE options. both don't work. this is the file of creating brand new zip file using isapi. http://www.mingspc.com/mingspc/t.zip in the file you can also find 2 files with fileext 03252 which was generated upon the script runs. found a good script from phpclasses.org by Rochak Chauhan works pretty well, he was using crc32() gzcompress() to do the job. hope this help. Previous Comments: ------------------------------------------------------------------------ [2009-02-25 15:00:33] paj...@php.net Other question, are you sure you are creating a fresh new archive and not opening an already corrupted archive? Try: if ($zip->open('test.zip', ZIPARCHIVE::CREATE) === TRUE)... (create a new one but does not overwrite an existing archive) or if ($zip->open('test.zip', ZIPARCHIVE::OVERWRITE) === TRUE).. ------------------------------------------------------------------------ [2009-02-25 14:55:35] paj...@php.net please provide a link to the file you are adding. Also the windows files are in http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2009-02-09 04:53:19] kmteoh at hotmail dot com extension dir is definitely correct. the same script worked in cli but not browser (isapi). tried http://snaps.php.net/php5.2-latest.tar.gz still no luck. i ended up using system() with external rar.exe and unrar.exe to do the job which is perfect. though certain system setup will not allow system() or exec() due to permission settings, which is why i am keen to have my product coded with php internal lib rather than using external tools. ------------------------------------------------------------------------ [2009-02-06 08:30:21] paj...@php.net And be sure to actually use the correct extension dir. ------------------------------------------------------------------------ [2009-02-06 08:29:51] paj...@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ 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