View Single Post

  #7 (permalink)  
Old 12-10-2004
Andy Hassall
 
Posts: n/a
Default Re: Zip File Corruption and Smarty

On Thu, 09 Dec 2004 23:51:55 GMT, Neophyte <neophyte@home.org> wrote:

>Andy Hassall <andy@andyh.co.uk> wrote:
>
>>On Thu, 09 Dec 2004 23:21:01 GMT, Neophyte <neophyte@home.org> wrote:
>>
>>>> I can't work out where Smarty comes into the mix here - you're not using
>>>>Smarty to actually serve the zipfiles, are you?
>>>
>>>It doesn't make any sense to me either! But the introduction of
>>>Smarty is the only change I've made and the file corruption started
>>>soon after. If I go back to the old non-Smarty version the downloads
>>>stop getting corrupted.
>>>
>>>I'm baffled, but there it is.

>>
>> Have you put the corrupted files into a text editor to see if there's anything
>>obvious like PHP error messages embedded in the file?

>
>I've had a look at them in a hex viewer. The difference from a known
>good version of the file and the corrupt one is that the corrupt one
>has "200A" hex prepended to it and the last two bytes of the file have
>been truncated; leaving it the right size, but bad.


The file wouldn't happen to be 8202 bytes long, would it?

--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Reply With Quote