php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17265 function connection_xxxx() and ignore_user_abort don't work
Submitted: 2002-05-16 00:48 UTC Modified: 2002-09-19 11:11 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: buasuwan at se-ed dot net Assigned: zeev (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 4.1.2 OS: FreeBSD4.5
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: buasuwan at se-ed dot net
New email:
PHP Version: OS:

 

 [2002-05-16 00:48 UTC] buasuwan at se-ed dot 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);

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-07 20:53 UTC] mind at sublife dot 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-09-05 13:42 UTC] scottij at arbor dot net
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.
 [2002-09-05 15:56 UTC] sniper@php.net
Another one for Zeev to fix.. :)

 [2002-09-19 06:49 UTC] neil dot doody at talk21 dot com
Ive been updating my version of PHP every week in the hope that this problem is fixed.

alas, it still does not work.

Has anyone any feedback on this bug, when it may be fixed?
 [2002-09-19 11:11 UTC] zeev@php.net
Issue (1) should be fixed.

As for issue (2) - it should be working fine.  Note that disconnected links are only detected while PHP sends out output.  If you have a script that just performs computations and doesn't emit output while doing that, PHP has no way of detecting that the connection was closed.
 [2002-09-25 07:39 UTC] neil dot doody at talk21 dot com
If this was really fixed, then Bug #17774 would also be fixed ?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 28 08:01:30 2024 UTC