php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #65449 Let ignore_user_abort(false) check if it's already aborted
Submitted: 2013-08-14 10:09 UTC Modified: -
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: jille at hexon dot cx Assigned:
Status: Open Package: Unknown/Other Function
PHP Version: master-Git-2013-08-12 (Git) OS: all
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jille at hexon dot cx
New email:
PHP Version: OS:

 

 [2013-08-14 10:09 UTC] jille at hexon dot cx
Description:
------------
I enable and disable ignore_user_abort a few times during the execution but if the user aborts the request while the code is in a section that ignores it, it (of course) ignores it. But when I call ignore_user_abort(false) it doesn't check whether it was already aborted.

I think it would be useful to check whether we are already aborted when disabling the ignoring.

Test script:
---------------
It could also be accomplished with:

ignore_user_abort(true);
// critical section
ignore_user_abort(false);
if(connection_aborted()) {
  exit;
}


Patches

Pull Requests

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 03 13:01:26 2024 UTC