From: Ron at Termolog dot com Operating system: Windows XP and Linux PHP version: 4.3.2 PHP Bug Type: GD related Bug description: Image does not display if include file has whitespace after last ?>
Description: ------------ If an iclude file contains any form of whitespace after the closing ?> then an image (Png and Jpeg) displayed in the calling php file will not display. Reproduce code: --------------- <? header("Content-type: image/jpeg"); include "anyfile.php3"; $img = @ImageCreate (100, 100); $Blue = ImageColorAllocate($img,0,0,255); imagefilledrectangle($img, 20, 20, 80, 80, $Blue); ImageJpeg ($img); imagedestroy($img); ?> ----------------------------------- <? //This is the include file (anyfile.php3) $dummy=1; ?> Expected result: ---------------- The image should be displayed Actual result: -------------- Image is not displayed -- Edit bug report at http://bugs.php.net/?id=24618&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24618&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24618&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24618&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24618&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24618&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24618&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24618&r=support Expected behavior: http://bugs.php.net/fix.php?id=24618&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24618&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24618&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24618&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24618&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24618&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24618&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24618&r=gnused