ID:               36464
 User updated by:  mdhp at gmx dot de
 Reported By:      mdhp at gmx dot de
 Status:           Bogus
 Bug Type:         GD related
 Operating System: debian 3.1
 PHP Version:      5.1.2
 New Comment:

Yes thats right, so i wrote "... snip..." code for sending header is
done and works fine for gifs and jpgs.

But the second parameter for imagepng must set in 5.1.2.
In old versions an empty parameter could be transmitted.

Normaly you can put an empty parameter or no parameter, the result is
the same, but not in 5.1.2.


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

[2006-02-20 17:16:47] [EMAIL PROTECTED]

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

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

[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

Reply via email to