php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46397 connection_aborted() function returns always 0
Submitted: 2008-10-26 21:47 UTC Modified: 2008-10-26 22:50 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ger_stingray427 at yahoo dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.6 OS: linux
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: ger_stingray427 at yahoo dot com
New email:
PHP Version: OS:

 

 [2008-10-26 21:47 UTC] ger_stingray427 at yahoo dot com
Description:
------------
does not work even user press Stop button on a browser.
currently tested on firefox 64bit-version. But guess this is not a problem of apache2 or browser.
btw using apache 2.2.9 and php is build as module

Reproduce code:
---------------
while(!connection_aborted()) {
  usleep(10000);
}

Expected result:
----------------
script or loop should exit

Actual result:
--------------
script keeps running, tested even without usleep(10000); and CPU load was 100% for 30 sec (timeout time)!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-26 22:50 UTC] jani@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Try search for "connection_aborted" before submitting any bug 
reports.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 18 22:00:03 2025 UTC