From: rpeters+php at icomproductions dot ca Operating system: N/A PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: #38794 also applies to imagegif and imagejpeg
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 bug report at http://bugs.php.net/?id=41080&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41080&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41080&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41080&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41080&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41080&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41080&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41080&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41080&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41080&r=support Expected behavior: http://bugs.php.net/fix.php?id=41080&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41080&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41080&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41080&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41080&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41080&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41080&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41080&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41080&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41080&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41080&r=mysqlcfg