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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 07:01:29 2024 UTC