From:             seth at pricepages dot org
Operating system: Mac 10.4
PHP version:      5CVS-2006-10-27 (snap)
PHP Bug Type:     GD related
Bug description:  misleading error message with imagecreatefromgd2part()

Description:
------------
This script results in the error message:
'http://leopold.sage.wisc.edu/world.vis.675.gd2' is not a 
valid GD2 file

But it *is* valid. The problem is that the parameter passed 
has zero width, but the error message is misleading.

Reproduce code:
---------------
<?php
$img =
imagecreatefromgd2part('http://leopold.sage.wisc.edu/world.vis.675.gd2',
0, 100,0, 100);

/* This works fine:
$img =
imagecreatefromgd2part('http://leopold.sage.wisc.edu/world.vis.675.gd2',
0, 100,100, 100);
*/

header('Content-Type: image/png');
imagepng($img);
?>


-- 
Edit bug report at http://bugs.php.net/?id=39286&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39286&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39286&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39286&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39286&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39286&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39286&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39286&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39286&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39286&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39286&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39286&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39286&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39286&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39286&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39286&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39286&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39286&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39286&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39286&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39286&r=mysqlcfg

Reply via email to