|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 10:00:01 2025 UTC |
php -r '$size = getimagesize("http://s005.pictura-dp.nl/foto/500px/GAM_908/08841.jpg"); print_r($size); echo "\n";' works without problems here (PHP 4.3.0), while php -r '$size = getimagesize("http://s005.pictura-dp.nl/foto/500px/GAM_017/00645.jpg"); print_r($size); echo "\n";' prints nothing. ImageMagick's "identify" sees some strange ipct data in the second image; probably these make getimagesize() misbehave.