#18137 [Fbk->NoF]: output not working properly?
| From: | sniper@php.net | Date: | Thu, 21 Nov 2002 23:08:39 +0000 |
| Subject: | #18137 [Fbk->NoF]: output not working properly? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-25465@lists.php.net to get a copy of this message | ||
ID: 18137
Updated by: sniper@php.net
Reported By: loe@loe.at
-Status: Feedback
+Status: No Feedback
Bug Type: Apache2 related
Operating System: Linux/ Windows
PHP Version: 4.2.1
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2002-11-10 18:33:19] sniper@php.net
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
------------------------------------------------------------------------
[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