getimagesize() on remote images fails sometimes..
| Bug #21912 | getimagesize() on remote images fails sometimes.. | ||||
|---|---|---|---|---|---|
| Submitted: | 2003-01-27 16:12 UTC | Modified: | 2003-02-22 04:57 UTC | ||
| From: | tozz at kijkt dot tv | Assigned: | wez (profile) | ||
| Status: | Closed | Package: | GetImageSize related | ||
| PHP Version: | 4.3.1-dev | OS: | Linux | ||
| Private report: | No | CVE-ID: | None | ||
[2003-01-27 16:12 UTC] tozz at kijkt dot tv
Hallo, I have a weird problem, which I think is a bug. The following script works with PHP 4.1.2 (I know, very outdated), but DOES NOT work with PHP 4.3.0: <? error_reporting (E_ALL); $foto="http://s005.pictura-dp.nl/foto/500px/GAM_908/08841.jpg"; $image_size=getimagesize($foto); $width=$image_size[0]; $height=$image_size[1]; $type=$image_size[2]; print ("<img src='$foto'>\n"); print ("<p>\n"); print ("width: $width; height: $height; type: $type<br>\n"); print ("<p>\n"); $foto="http://s005.pictura-dp.nl/foto/500px/GAM_017/00645.jpg"; $image_size=getimagesize($foto); $width=$image_size[0]; $height=$image_size[1]; $type=$image_size[2]; print ("<img src='$foto'>\n"); print ("<p>\n"); print ("width: $width; height: $height; type: $type<br>\n"); ?> The problem is : The first image works fine, it shows the height, width and type. However, the information about the second image is only beeing displayed if using PHP 4.1.2. With PHP 4.3.0 no information is beeing displayed.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2003-01-27 17:25 UTC] sniper@php.net
[2003-01-28 13:52 UTC] tozz at kijkt dot tv
[2003-02-17 17:37 UTC] michael dot mauch at gmx dot de
[2003-02-17 18:23 UTC] helly@php.net
[2003-02-22 02:26 UTC] michael dot mauch at gmx dot de
[2003-02-22 04:57 UTC] wez@php.net