|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-12 07:49 UTC] elmicha@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 05:00:01 2025 UTC |
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