#36464 [Opn->Bgs]: imagepng empty second param shows error
| From: | bjori@php.net | Date: | Mon, 20 Feb 2006 16:16:48 +0000 |
| Subject: | #36464 [Opn->Bgs]: imagepng empty second param shows error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-93444@lists.php.net to get a copy of this message | ||
ID: 36464
Updated by: bjori@php.net
Reported By: mdhp at gmx dot de
-Status: Open
+Status: Bogus
Bug Type: GD related
Operating System: debian 3.1
PHP Version: 5.1.2
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
You'll need to send correct header
Previous Comments:
------------------------------------------------------------------------
[2006-02-20 16:27:10] mdhp at gmx dot de
Description:
------------
Empty second param for imagepng shows trashcode but not the png.
Not a real bug, but Versions before 5.1.2 are ok.
Function imagegif with second empty param works.
Reproduce code:
---------------
// ... snip ... imagecreate code from png file...
// At version < 5.1.2 png will shown on browser
$output_filename = '';
imagepng($src, $output_filename);
// on 5.1.2 you have to check if output_filename empty
// imagegif works fine with two params
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36464&edit=1