Re: Zip lib warnings 4.2.0RC2

From: Date: Fri, 05 Apr 2002 17:11:01 +0000
Subject: Re: Zip lib warnings 4.2.0RC2
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-4906@lists.php.net to get a copy of this message
On Fri, 5 Apr 2002, Melvyn Sopacua wrote: > Hi all, > > [Fri Apr 5 18:51:12 2002] [error] PHP Warning: String is not > zero-terminated (ÿØÿà) (source: ./zend_execute.c:449) in > /webdocs/kwek.hackerweb.nl/public_html/gamez/zzip_receive.php on line 47 > /webdocs/kwek.hackerweb.nl/public_html/gamez/zzip_receive.php(47) : Warning > - String is not zero-terminated (ÿØÿà) (source: ./zend_execute.c:449) > > Should I be worried? Yes you should, can you make an example, and an error message which is correct (your example doesn't have 47 lines). regards, Derick > > Source is here: > > <?php > $zip=zip_open($uploadfile); > if($zip) > { > while($zipped = zip_read($zip)) > { > $zipped_name=zip_entry_name($zipped); > li($zipped_name); > $fp=fopen($save_root.'/'.$zipped_name, "w"); > if(!$fp) > { > croak("Can't open $save_root/$zipped_name"); > } > > if(zip_entry_open($zip, $zipped, "r")) > { > $buf=zip_entry_read($zipped, > zip_entry_filesize($zipped));// <==== line 47 > fwrite($fp, $buf); > } > fclose($fp); > } > zip_close($zip); > } > ?> > > Met vriendelijke groeten / With kind regards, > > Webmaster IDG.nl > Melvyn Sopacua > > ----------------------------------------------------------------------- Did I help you? Consider a gift: http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B ----------------------------------------------------------------------- PHP: Scripting the Web - derick@php.net All your branches are belong to me! SRM: Script Running Machine - www.vl-srm.net -----------------------------------------------------------------------

« previous php.qa (#4906) next »