#39286 [Opn->Asn]: misleading error message with imagecreatefromgd2part()

From: Date: Fri, 27 Oct 2006 21:49:01 +0000
Subject: #39286 [Opn->Asn]: misleading error message with imagecreatefromgd2part()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-104092@lists.php.net to get a copy of this message
ID: 39286 Updated by: tony2001@php.net Reported By: seth at pricepages dot org -Status: Open +Status: Assigned Bug Type: GD related Operating System: Mac 10.4 PHP Version: 5CVS-2006-10-27 (snap) -Assigned To: +Assigned To: pajoye 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

« previous php.bugs (#104092) next »