|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #55522 Trigger a callback on user abort
Submitted: 2011-08-27 22:51 UTC Modified: -
Avg. Score:4.7 ± 0.5
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: nicolas dot grekas+php at gmail dot com Assigned:
Status: Open Package: Unknown/Other Function
PHP Version: 5.3.8 OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2011-08-27 22:51 UTC] nicolas dot grekas+php at gmail dot com
When the user aborts its connection and ignore_user_abort() is set to false, the script dies, with no other way for use developers to gracefully handle the event.

It would be very useful to have a way to register a callback which would be called on user abort.

What about making ignore_user_abort() accept this callback as its first argument ?


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Jan 18 12:01:26 2021 UTC