ID:               24618
 Updated by:       [EMAIL PROTECTED]
 Reported By:      Ron at Termolog dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         GD related
 Operating System: Windows XP and Linux
 PHP Version:      4.3.2
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

See <http://www.php.net/function.include> and
<http://www.php.net/manual/en/language.basic-syntax.php#language.basic-syntax.phpmode>.




Previous Comments:
------------------------------------------------------------------------

[2003-07-12 07:20:16] Ron at Termolog dot com

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 this bug report at http://bugs.php.net/?id=24618&edit=1

Reply via email to