From: zebroid at list dot ru Operating system: debian 6.0 PHP version: 5.4.10 Package: GD related Bug Type: Bug Bug description:imagejpeg
Description: ------------ after update php 5.3->php 5.4 i have a problem with image thumbnails in vbulletin forum v 3.8.7 (last in the 3.x branch) after some investigations i find the problem. code imagejpeg($image, '', $quality); works fine in php 5.3 and output jpeg image to browser but in php 5.4 in only generate error: Warning: imagejpeg(): Filename cannot be empty in [path]/includes/class_image.php on line 1428 i read a documentation http://php.net/manual/en/function.imagejpeg.php and understand that now it should works maybe in more 'pedantic' way (imagejpeg($image, NULL, $quality)), but maybe for the Backward Compatible you make this function work in a old way? (NULL or '' in secord parameter to output jpeg) or, at least, mention about that on http://php.net/manual/en/migration54.incompatible.php vBulletin v3.x still rather popular and suppose that not only i may face this problem (and sorry for my russian-english) Test script: --------------- imagejpeg($image, '', $quality); <-work in php 5.3, dont work in php 5.4 -- Edit bug report at https://bugs.php.net/bug.php?id=63920&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63920&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63920&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63920&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63920&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63920&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63920&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63920&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63920&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63920&r=support Expected behavior: https://bugs.php.net/fix.php?id=63920&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63920&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63920&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63920&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63920&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63920&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63920&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63920&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63920&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63920&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63920&r=mysqlcfg