ID:               18137
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]

Dupe of #17885. This is an Apache2 problem.

------------------------------------------------------------------------

[2002-07-03 07:50:14] [EMAIL PROTECTED]

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

Reply via email to