Doc #69878 [NEW]: Undocumented change in imagejpeg behavior

From: Date: Thu, 18 Jun 2015 17:22:50 +0000
Subject: Doc #69878 [NEW]: Undocumented change in imagejpeg behavior
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12447@lists.php.net to get a copy of this message
From: teo8976 at gmail dot com Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Undocumented change in imagejpeg behavior Description: ------------ --- From manual page: http://www.php.net/function.imagejpeg --- bool imagejpeg ( resource $image [, string $filename [, int $quality ]] ) "To skip this argument [$filename] in order to provide the quality parameter, use NULL." At some version between 5.2.17 and 5.4.29, the behavior has changed in the case where $filename equals ''. In 5.2.17, passing '' would yield the same result as passing NULL. In 5.4.29, passing '' results in the error message "filename cannot be empty" (as expected). Although the documentation says that the value to use is null (dunnow if it has always been stated as clearly as it is now), and even if the change in behavior is a fix to a bug, the change MUST be documented, including the exact version when the behavior has changed. -- Edit bug report at https://bugs.php.net/bug.php?id=69878&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69878&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69878&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69878&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69878&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69878&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69878&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69878&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69878&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69878&r=support Expected behavior: https://bugs.php.net/fix.php?id=69878&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69878&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69878&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69878&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69878&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69878&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69878&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69878&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69878&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69878&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69878&r=mysqlcfg

« previous php.doc.bugs (#12447) next »