PHP 4.0 Bug #9540 Updated: Dumping html files to error log
| From: | hholzgra@php.net | Date: | Fri, 16 Mar 2001 20:50:49 +0000 |
| Subject: | PHP 4.0 Bug #9540 Updated: Dumping html files to error log | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49111@lists.php.net to get a copy of this message | ||
ID: 9540
Updated by: hholzgra
Reported By: shane@cm.nu
Old-Status: Open
Status: Closed
Bug Type: Reproduceable crash
Assigned To:
Comments:
fixed in CVS
Previous Comments:
---------------------------------------------------------------------------
[2001-03-03 18:10:00] shane@cm.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
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9540&edit=2