#36464 [NEW]: imagepng empty second param shows error
| From: | mdhp at gmx dot de | Date: | Mon, 20 Feb 2006 15:27:10 +0000 |
| Subject: | #36464 [NEW]: imagepng empty second param shows error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-93441@lists.php.net to get a copy of this message | ||
From: mdhp at gmx dot de
Operating system: debian 3.1
PHP version: 5.1.2
PHP Bug Type: GD related
Bug description: imagepng empty second param shows error
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 bug report at http://bugs.php.net/?id=36464&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36464&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36464&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36464&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36464&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36464&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36464&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36464&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36464&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36464&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36464&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36464&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36464&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36464&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36464&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36464&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36464&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36464&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36464&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36464&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36464&r=mysqlcfg