#17265 [Com]: function connection_xxxx() and ignore_user_abort don't work
| From: | scottij at arbor dot net | Date: | Thu, 05 Sep 2002 18:42:59 +0000 |
| Subject: | #17265 [Com]: function connection_xxxx() and ignore_user_abort don't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-18506@lists.php.net to get a copy of this message | ||
ID: 17265
Comment by: scottij@arbor.net
Reported By: buasuwan@se-ed.net
Status: Open
Bug Type: Scripting Engine problem
Operating System: FreeBSD4.5
PHP Version: 4.1.2
New Comment:
This bug is trivially reproduceable with the following code fragment:
while (1) {
sleep(3);
$status = connection_status();
syslog(1, "connection status is $status");
$status = connection_aborted();
syslog(1, "connection aborted is $status");
}
It happens consistently using php4.1.2 compiled under OpenBSD 2.8.
If you watch the error log, the connection_status() always returns 0,
whether or not the stop button has been pressed. Similarly,
connection_aborted() always returns 0.
Previous Comments:
------------------------------------------------------------------------
[2002-06-07 20:53:02] mind@sublife.dk
the functions do work if you hve a sleep() with more then one second
everything below don't work.
some one should fix that bug
------------------------------------------------------------------------
[2002-05-16 00:48:22] buasuwan@se-ed.net
when client disconnected or hit 'Stop' button.
1.these 2 functions alway return 0;
connection_status();
connection_aborted();
2.and alway ignore 'STOP' button when
ignore_user_abort(true); or
ignore_user_abort(false);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17265&edit=1