You are here: Re: imagecreatetruecolor sometimes causes forced-download of index.php for some JPEG images « PHP Programming Language « IT news, forums, messages
Re: imagecreatetruecolor sometimes causes forced-download of index.php for some JPEG images

Posted by comp.lang.php on 08/04/06 23:06

Andy Hassall wrote:
> On 4 Aug 2006 15:12:05 -0700, "comp.lang.php" <phillip.s.powell@gmail.com>
> wrote:
>
> >Yes, to no avail. It still forces you to download "index.php". There
> >is no error, no warning, nothing. PHP doesn't register any kind of
> >message whatseover; in fact, it sounds more like a segfault, in short,
> >*there is no PHP anymore*
>
> If there was a segfault there'd be a record of it in the Apache error log - is
> there?

I will let you know; I was not given permission to view the Apache
error logs (yes of my own machine, it's the US government, nuff said)

>
> >> (1) What _is_ output by the script when it fails?
> >
> >Nothing. You're forced to download index.php
>
> Then at least _something_ was output. Accept the download - how long is the
> file you download? Is it zero-length or not?
>

It's the length of the original index.php that I wrote, script intact.
Not very safe.

> >> (2) Can you reduce it to a _minimal_ test script - sounds like it could go all
> >> the way down to imagecreatefromjpeg() followed by imagejpeg() ?
> >
> >It doesn't. It dies right at imagecreatefromjpeg() every time. Never
> >gets any further than that.
>
> So you have reproduced the problem on a new minimal script containing only a
> call to imagecreatefromjpeg() and nothing else?
>

Yes, and the download is the script I created with
imagecreatefromjpeg() as well.

> What is memory_limit set to?
> What are the properties of the JPEG file?
>

memory_limit set to 8M (8mb)
Properites of the JPEG file are pretty standard AFAIK, I'm sending one
"good one" and one "bad one" to you

> >> (3) If you still can't work it out from there can you make available to the
> >> group examples of (a) an image that fails and (b) a similar one that doesn't
> >> fail?
> >
> >I don't have an immediate way of producing them publically; they're on
> >a government-protected server that's not open to the general public; I
> >would have to attach them here, which I don't think Google Groups
> >allows to do.
>
> You don't have another website you can put it on? Failing that you could email
> one to me if you wanted and I could have a look to see if there's anything
> strange about the JPEG, unless you're not allowed to distribute it.
>

I emailed them to you; these are not private proprietary images they
are my own test images.

> --
> Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
> http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация