php.net |  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: -
Votes:5
Avg. Score:4.4 ± 0.8
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
27 - 23 = ?
Subscribe to this entry?

 
 [2011-08-27 22:51 UTC] nicolas dot grekas+php at gmail dot com
Description:
------------
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 ?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-03-12 16:21 UTC] latestmodgame2021 at gmail dot com
<a href="https://apkmodinfo.com/"> Minecraft PE Apk Mod </a>  All Latest Android Apk Mod Apps Games Full Version Free Download from here.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 06:01:29 2024 UTC