#35061 [Opn]: imagegif,png,ipg.second parameter can not be set ''(null)
| From: | surfchen at gmail dot com | Date: | Wed, 02 Nov 2005 08:16:21 +0000 |
| Subject: | #35061 [Opn]: imagegif,png,ipg.second parameter can not be set ''(null) | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969370732@lists.php.net to get a copy of this message | ||
ID: 35061
User updated by: surfchen at gmail dot com
Reported By: surfchen at gmail dot com
Status: Open
Bug Type: Documentation problem
Operating System: Redhat AS
PHP Version: 4.4.0
New Comment:
maybe it's not just a documentation problem.
Previous Comments:
------------------------------------------------------------------------
[2005-11-02 09:01:24] derick@php.net
Marking as a doc problem then.
------------------------------------------------------------------------
[2005-11-02 06:39:55] surfchen at gmail dot com
Description:
------------
1)the imagegif,imagejpg,imagepng can not be used with tow parameters
which the 2nd parameter is ''(null).but if give the function more than
2 parameters,it works.
2)imagegif can give 4 parameters while the document just says it just
have tow parameters.
Reproduce code:
---------------
<?php//incorrect.1)
$img=imagecreatefromgif('2.gif');
header("Content-type:image/gif");
imagegif($img,'');
?>
<?php//correct(with 4 parameters).2)
$img=imagecreatefromgif('2.gif');
header("Content-type:image/gif");
imagegif($img,'',55,22);
?>
Expected result:
----------------
1) should ouput correct.
2) should ouput a error because that it have 4 parameters
Actual result:
--------------
1)output a incorrect image
2)ouput correctly
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35061&edit=1