ID:               41080
 Updated by:       [EMAIL PROTECTED]
 Reported By:      rpeters+php at icomproductions dot ca
-Status:           Open
+Status:           Closed
 Bug Type:         Documentation problem
 Operating System: N/A
 PHP Version:      Irrelevant
-Assigned To:      
+Assigned To:      bjori
 New Comment:

Fixed imagegif(), imagejpeg() was fix long time ago


Previous Comments:
------------------------------------------------------------------------

[2007-04-13 22:02:27] rpeters+php at icomproductions dot ca

Description:
------------
Documentation for imagegif and imagejpeg both incorrectly convey that
it is acceptable to pass null or an empty string as the second parameter
without specifying additional parameters.

It is also worth noting that imagegif docs state it only takes 2
parameters, while other bug report comments have indicated it takes 4.

Related: bug #38794

Reproduce code:
---------------
imagegif($imageData, '');

Expected result:
----------------
According to the docs, this should be acceptable, causing the image to
be outputted to the client.

Actual result:
--------------
It throws an exception trying to create a file with a null filename.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41080&edit=1

Reply via email to