#41080 [Opn->Csd]: #38794 also applies to imagegif and imagejpeg
| From: | bjori@php.net | Date: | Fri, 25 May 2007 20:12:06 +0000 |
| Subject: | #41080 [Opn->Csd]: #38794 also applies to imagegif and imagejpeg | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969376446@lists.php.net to get a copy of this message | ||
ID: 41080
Updated by: bjori@php.net
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