PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Images » Image_Transform » Bug #5872

the 2nd parameter of imagegif can not be a empty str if just puting 2 params

Details

Submitted2005-11-05 07:27 UTC
Fromsurfchen at gmail dot com
StatusNo Feedback
PackageImage_Transform
PHP Version4.3.11
OSRedhat Linux AS4
Roadmaps(Not assigned)

Comments

[2005-11-05 07:27 UTC] surfchen at gmail dot com

Description:
------------
there will be a error Warning: imagegif(): Invalid filename '' occur when the 2nd argument of imagegif filename=='' and the 3rd argument are not set,we might find it during the function GD::_generate in GD.php. imagejpeg,imagepng have the same problem.(but in this GD::_generate,the imagejpeg use three parameters when $filename=='',so when a image is of the jpg type,there is no error occur)

Test script:
---------------
$gd=new Image_Transform_Driver_GD;
$gd->load('1.gif');//$gd->load('1.png');
$gd->display();

Expected result:
----------------
display a image

Actual result:
--------------
display none,just headering a image content-type