|  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: -
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.
Block user comment
Status: Assign to:
Bug Type:
From: jille at hexon dot cx
New email:
PHP Version: OS:


 [2013-08-14 10:09 UTC] jille at hexon dot cx
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:

// critical section
if(connection_aborted()) {


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Feb 21 02:01:28 2024 UTC