From:             r dot h dot zeelenberg at bravo-informatisering dot nl
Operating system: redhat
PHP version:      4.3.9RC2
PHP Bug Type:     *Graphics related
Bug description:  image header problem

Description:
------------
Hi fellow-phpers..

I am having a strange problem...

I stripped my code to the basic to elimenate things..

What i've got...

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
:

<?php
$documentroot=$_SERVER['DOCUMENT_ROOT'];
?>

get_test.php is :

<?php
$documentroot=$_SERVER['DOCUMENT_ROOT'];

#include($documentroot.'/verboden.php');

$afbeelding_file=$documentroot.'/images/geen_afbeelding_1.jpg';

header("Content-type: image/jpg");
$current_file=ImageCreateFromJPEG($afbeelding_file);
ImageJPEG ($current_file);
ImageDestroy($current_file);
?>

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

Anyone idea's??

TIA

Ronald

ps this one ruined my sunday ;(


-- 
Edit bug report at http://bugs.php.net/?id=30005&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30005&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30005&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30005&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30005&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30005&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30005&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30005&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30005&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30005&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30005&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30005&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30005&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30005&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30005&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30005&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30005&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30005&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30005&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30005&r=mysqlcfg

Reply via email to