php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9540 Dumping html files to error log
Submitted: 2001-03-03 18:10 UTC Modified: 2001-03-16 15:50 UTC
From: shane at cm dot nu Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.4pl1 OS: Linux
Private report: No CVE-ID: None
 [2001-03-03 18:10 UTC] shane at cm dot nu
Hi,

PHP seems to have a bug where if the client closes the
connection too quickly,it can write the output to the error
log if output buffering is enabled.  The following script
should do it.
<?
ob_start();
?>
large html file here.
<?
ob_end_flush();
?>

If the request is interrupted, the following is printed in
Apache's error log.

[Sat Mar  3 14:58:29 2001] [info] [client 151.197.242.152]
(32)Broken pipe: client stopped connection before rwrite
completed
Directly after this point, the requested html is printed
after being processed by PHP.  No timestamps, just
appearing in the error log as is.  If output buffering is
disabled, the above message does appear if LogLevel is
low enough but the html file doesn't follow.

Note: if LogLevel is above info in httpd.conf, you won't
see the above warning message, just the html file.

Shane

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-16 15:50 UTC] hholzgra@php.net
fixed in CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 12:01:27 2024 UTC