|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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-2023 The PHP Group
All rights reserved.
Last updated: Sat Sep 30 17:01:24 2023 UTC