Home » Images » Image_Transform » Bug #5872
the 2nd parameter of imagegif can not be a empty str if just puting 2 params
Details
| Submitted | 2005-11-05 07:27 UTC |
|---|---|
| From | surfchen at gmail dot com |
| Status | No Feedback |
| Package | Image_Transform |
| PHP Version | 4.3.11 |
| OS | Redhat 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