ID: 23979 Updated by: [EMAIL PROTECTED] Reported By: diana at interhotel dot com -Status: Assigned +Status: Feedback Bug Type: GetImageSize related Operating System: windows PHP Version: 4.3.2 Assigned To: wez New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip I should note that when encountering an invalid URL getimagesize() will print a warning (simular to the one shown in prior reports) and return false. That is not a bug. If 404 code is returned and the image is valid there is a possibility that the webserver doing some sort of filtering filtering (based on http refer or user agent) that PHP does not pass resulting in a 404 error code being returned by the webserver. Previous Comments: ------------------------------------------------------------------------ [2003-07-03 03:43:27] diana dot castillo at nvtechnologies dot com I am the one who originally reported this, but I dont remember my password to comment on it, my original report was with [EMAIL PROTECTED] email. I found out that there was something I could change in my error reporting program so that the error would not print out to the screen . ------------------------------------------------------------------------ [2003-07-02 23:44:22] nilanjan at unlimitedfx dot com getimagesize() fails for remote files on PHP 4.3.2 on SunOS - so I suppose this kind of a problem is not limited to a Win32 platform... I get the following error: Warning: getimagesize(http://www.exoticindiaart.com/panels/wb05sm.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found ------------------------------------------------------------------------ [2003-06-03 11:18:58] [EMAIL PROTECTED] I cannot replicate this Linux and the original report suggests that the script was executed on Windows. So, it is likely this is a win32 only bug. ------------------------------------------------------------------------ [2003-06-03 05:37:03] [EMAIL PROTECTED] Sounds like a stream problem, assigning to Wez. Can you please come up with a short script to reproduce this problem, without using a database? ------------------------------------------------------------------------ [2003-06-03 05:32:25] diana at interhotel dot com I use @getimagesize to resize pictures that I get from a url which comes from a database which is always changing. The problem is that sometimes the url does not contain the picture is is supposed to , and then I get the following error, I thought this was fixed in version 4.3.2 but I still get it: Warning: getimagesize(http://www.hotelresb2b.com/images/hoteles/P1KYHC022030.JPG): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found at c:\inetpub\wwwroot\web\site\ReservationManager.php line 299. Warning: getimagesize(http://www.hotelresb2b.com/planos/PLKYHC022030.GIF): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found at c:\inetpub\wwwroot\web\site\ReservationManager.php line 312. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23979&edit=1