#21912 [Opn->Ver]: getimagesize weirdness

From: Date: Mon, 27 Jan 2003 23:25:35 +0000
Subject: #21912 [Opn->Ver]: getimagesize weirdness
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-31388@lists.php.net to get a copy of this message
ID: 21912 Updated by: sniper@php.net Reported By: tozz@kijkt.tv -Status: Open +Status: Verified -Bug Type: Unknown/Other Function +Bug Type: GetImageSize related Operating System: Linux -PHP Version: 4.3.0 +PHP Version: 4.3.1-dev New Comment: I can reproduce this with latest stable CVS (4.3.1-dev) It does work if the image is local..but not if it's remote. Previous Comments: ------------------------------------------------------------------------ [2003-01-27 16:12:37] tozz@kijkt.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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21912&edit=1

« previous php.bugs (#31388) next »