php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20432 flush() outputs garbage
Submitted: 2002-11-14 13:37 UTC Modified: 2002-11-15 11:46 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: phanto@php.net Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.3.0-pre2 OS: Win32
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: phanto@php.net
New email:
PHP Version: OS:

 

 [2002-11-14 13:37 UTC] phanto@php.net
flush() outputs garbage:

script:
--------------------------
<?php
flush();
?>
--------------------------


output:
--------------------------
HTTP/1.1 200 OK
Date: Thu, 14 Nov 2002 19:30:32 GMT
Server: Apache/2.0.39 (Win32) PHP/4.2.2
Accept-Ranges: bytes
X-Powered-By: PHP/4.2.1
Transfer-Encoding: chunked
Content-Type: text/html; charset=ISO-8859-1


0
--------------------------

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-14 13:41 UTC] derick@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-11-15 10:57 UTC] phanto@php.net
no comment, derick :-)

i looked through the sapi code which seems to be right, it might be related to the apache version i'm using (2.0.39). i'll test this asap.

harald
 [2002-11-15 11:03 UTC] derick@php.net
let's keep it @ feedback then.
 [2002-11-15 11:18 UTC] rasmus@php.net
There have been a couple of reports of Apache 2.0.x sending its chunk headers incorrectly.  One was triggered by PHP running as a CGI.  I'm 99% sure this is a bug in Apache2.
 [2002-11-15 11:46 UTC] phanto@php.net
closing this. i'll reopen if it will turn out to be a php issue, which most likely won't happen.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 00:01:31 2025 UTC