From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.0.4pl1
PHP Bug Type:     Reproduceable crash
Bug description:  Dumping html files to error log

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


-- 
Edit Bug report at: http://bugs.php.net/?id=9540&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to