#39286 [Asn->Csd]: misleading error message with imagecreatefromgd2part()
| From: | iliaa@php.net | Date: | Sun, 31 Dec 2006 22:03:33 +0000 |
| Subject: | #39286 [Asn->Csd]: misleading error message with imagecreatefromgd2part() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-107078@lists.php.net to get a copy of this message | ||
ID: 39286
Updated by: iliaa@php.net
Reported By: seth at pricepages dot org
-Status: Assigned
+Status: Closed
Bug Type: GD related
Operating System: Mac 10.4
PHP Version: 5CVS-2006-10-27 (snap)
Assigned To: pajoye
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-10-27 20:11:17] seth at pricepages dot org
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 this bug report at http://bugs.php.net/?id=39286&edit=1