|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30023 image header problem
Submitted: 2004-09-08 10:45 UTC Modified: 2004-09-08 10:49 UTC
From: r dot h dot zeelenberg at bravo-informatisering dot nl Assigned:
Status: Not a bug Package: *Graphics related
PHP Version: 4.3.9RC2 OS: redhat
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: r dot h dot zeelenberg at bravo-informatisering dot nl
New email:
PHP Version: OS:


 [2004-09-08 10:45 UTC] r dot h dot zeelenberg at bravo-informatisering dot nl
Proble with image header and reproducable situation. Also at different sites.

No able to show image after include of an empty file. I mean an include files thats only has only an declaration inside and NO OUTPUT OR SPACES...

How to reproduce the error:

php file get_test.php

This should place an image on the screen in verboden.php there should
be some checks but i've wiped them out for clearification. So
verboden.php is :


get_test.php is :




header("Content-type: image/jpg");
ImageJPEG ($current_file);

Attention! This works only!!! when i comment out the include for
I think this is very strange... Firefox is saying there is something
wrong with the image.. IE6 will try to download it.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-08 10:49 UTC]
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Duplicate of #30005
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 19:01:28 2024 UTC