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:

"Or are you trying to create t.zip in the \testscript\ directory using
the content of \testscript\? That would be bad :)"

i was actually trying to create new zip file in the folder i store my
source file and source code (i was treating the zip.php is the file i
want to add into archive) is that what causing all problem?


Previous Comments:
------------------------------------------------------------------------

[2009-03-02 21:33:30] paj...@php.net

Where are the files that you are actually adding to the archive?

All I see is a normal script and nothing but tempory (and corrupted)
files created by the zip extensions, for example t.zip.a03252.

Or are you trying to create t.zip in the \testscript\ directory using
the content of \testscript\? That would be bad :)

------------------------------------------------------------------------

[2009-03-02 21:27:31] kmteoh at hotmail dot com

http://www.mingspc.com/mingspc/source.zip

here is the source code. the script i was using are all from php.net
anyway

------------------------------------------------------------------------

[2009-03-02 15:46:37] paj...@php.net

I need the script you use to create this archive AND the original files
you add to the archives. To show me the corrupted archive is not enough.

------------------------------------------------------------------------

[2009-03-01 22:36:01] kmteoh at hotmail dot com

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.

------------------------------------------------------------------------

[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)..

------------------------------------------------------------------------

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

Reply via email to