Re: Bug in PHP 4.22? (getimagesize problem)
| From: | nicos@php.net | Date: | Tue, 08 Oct 2002 13:43:10 +0000 |
| Subject: | Re: Bug in PHP 4.22? (getimagesize problem) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119254@lists.php.net to get a copy of this message | ||
It works fine with me on 4.2.3. Try it.
--
Nicos - CHAILLAN Nicolas
nicos@php.net
www.WorldAKT.com - Hébergement de sites Internet
"Pekka Saarinen" <contacts@sci.fi> a écrit dans le message de news:
5.1.0.14.2.20021008154525.03165db8@studio-on-the.net...
Hi,
I have a very odd problem with PHP 4.22 (no acceleration) and Apache 1.3:
Getimagesize fails to see an image from URL randomly (1 out of 8 tries),
although the image is definitely there (trust me) and the server is under
zero load.
I tried also urlExists() from
http://www.php.net/manual/en/function.file-exists.php
and it has the same
problem - but even worse. Apache seems to reject PHP's file function
queries in random basis. Clearstatcache() does not seem to make any
difference.
If I just show the photos without getimagesize it shows ok every time, so
it is apparently not Apache's problem. It seems that PHP does not
interprete Apache's responses properly.
On other physical server I have PHP 4.0.6¨/ Apache 1.3, and with identical
code when checking the same photos (from the "faulty" server) Getimagesize
gets them right every time.
Also, on Windows PHP 4.2 / Apache 1.3 all works perfectly.
I have not updated to 4.23 to see if there's anything fixed there because
4.23 has reportedly POST corruption problems, and changelog does not say
anything about image check function fixes.
Any clues?
Thanks,
Pekka