From:             surfchen at gmail dot com
Operating system: Redhat AS
PHP version:      4.4.0
PHP Bug Type:     GD related
Bug description:  imagegif,png,ipg.second parameter can not be set ''(null)

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 bug report at http://bugs.php.net/?id=35061&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=35061&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=35061&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=35061&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=35061&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=35061&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=35061&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=35061&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=35061&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=35061&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=35061&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=35061&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=35061&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=35061&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=35061&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=35061&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=35061&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=35061&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=35061&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=35061&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=35061&r=mysqlcfg

Reply via email to