#38532 [Bgs]: connection status does not reflect the right information

From: Date: Mon, 21 Aug 2006 09:28:27 +0000
Subject: #38532 [Bgs]: connection status does not reflect the right information
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-101049@lists.php.net to get a copy of this message
ID: 38532 User updated by: fdcxl at 163 dot com Reported By: fdcxl at 163 dot com Status: Bogus Bug Type: *Web Server problem Operating System: linux PHP Version: 5.1.5 New Comment: In the manual, it says that when user clicks STOP button, the script should be terminated. In fact, the script keeps running. I checked it by verifying the size of /tmp/abc, which keeps increasing. I have tried to send output. It seems that IE maintains its own buffer, that any output can't get displayed before I click STOP button Previous Comments: ------------------------------------------------------------------------ [2006-08-21 08:46:27] tony2001@php.net connection_status and connection_aborted() rely on the function that outputs the data from the buffer. Since you do not output any data, there is no way to detect that the connection is dead. ------------------------------------------------------------------------ [2006-08-21 08:05:53] fdcxl at 163 dot com Description: ------------ connection_status function can't reflect the right information. When I click Stop button of IE, I can't get the ABORT signal. Reproduce code: --------------- conn.php <?php while(true) { sleep(1); file_put_contents("/tmp/abc", "Connection:".connection_status()."\n", FILE_APPEND); } ?> I access this page using IE with http, after about 10 seconds, I click Stop button of IE. Expected result: ---------------- The contents of /tmp/abc should be a sequence of 0s with one 1 in the end. The script stops. Actual result: -------------- I get all 0s, and script keeps running ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38532&edit=1

« previous php.bugs (#101049) next »