From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.3.0
PHP Bug Type:     Unknown/Other Function
Bug description:  getimagesize weirdness

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 bug report at http://bugs.php.net/?id=21912&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21912&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21912&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21912&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21912&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21912&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21912&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21912&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21912&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21912&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21912&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21912&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21912&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21912&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21912&r=gnused

Reply via email to