Ok, yesterday i´ve tried this... the command freezese. No chance to get an
error from the archive. Am i stupid? The original zip tool give me an error
on bad crc in a file, php quits with an freeze. I´ve tried also the crc
error. No chance. The $zip->open always give me and TRUE as return value.
Ah, fine. How do i use this ZIPARCHIVE::CHECKCONS flag?
Something like that should work, i think?
$zip = new ZipArchive;
$res = $zip->open ( $filename ZIPARCHIVE::CHECKCONS );
if (TRUE === $res) {
# all looks fine
}
elseif {
switch($res){
case ZIPARCHIVE::ER_INCONS:
On Tue, August 14, 2007 5:42 am, ecc wrote:
> i´m reading zip-files with the php zip-functions without a problem.
> Now i
> got and Zip containing an corrupt crc (If i open this file via winzip,
> the
> error is shown).
>
> It looks like the php functions for zip-handeling "zip_entry_read" and
> "
Hi Sanjeev,
thank you for your fast answer.
what do you mean with "error handling function" ()? If i read in the
zip_entry, the function is freezing no chance to handle the error,
because php dont give me an error or exception. If php find a corrupt file,
it freezes on this position. Maybe i c
Use error handling function for time being and exit from the loop
where control going in the loop.
On 8/14/07, ecc <[EMAIL PROTECTED]> wrote:
>
>
> Hi @all,
>
> i´m reading zip-files with the php zip-functions without a problem. Now i
> got and Zip containing an corrupt crc (If i open this file v
5 matches
Mail list logo