#18137 [Dup->Fbk]: output not working properly?
| From: | sniper@php.net | Date: | Mon, 11 Nov 2002 00:33:19 +0000 |
| Subject: | #18137 [Dup->Fbk]: output not working properly? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-24500@lists.php.net to get a copy of this message | ||
ID: 18137
Updated by: sniper@php.net
Reported By: loe@loe.at
-Status: Duplicate
+Status: Feedback
Bug Type: Apache2 related
Operating System: Linux/ Windows
PHP Version: 4.2.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-07-03 08:09:39] sander@php.net
Dupe of #17885. This is an Apache2 problem.
------------------------------------------------------------------------
[2002-07-03 07:50:14] loe@loe.at
I try to read in a .jpeg and output it via echo
(smtg. like:
$Filename = "uk.jpg";
if( $hFile = fopen($Filename, "rb"))
{
$Filesize = filesize($Filename);
header("Content-name: ".$Filename);
header("Content-type: image/jpeg");
header("Content-length: ".$Filesize);
$Data = fread($hFile, $Filesize);
echo $Data;
}
I also thries readfile, does not work either.
It seems to work und Windows For Files up to 40K, and under Linux for
files up to 180k, but I am not sure if it is related to the filesize or
to the filecontent.
I tried serveral newsgroups, nut this seems to be a bug (and noone
could help...).
Same problem exists in 4.2.0
Apache version is 2.0.39
I tried to track it down in the source, but the problem i snot obiuous.
I check up to sapi_apache_ub_write and the code seems to be correct (I
did no debuging, time is short now...). But I could not find the rwrite
function (Apache API obviously...)
Regards & tnx in advance, Mario Löfler
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18137&edit=1