|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76317 Undocumented huge change about register_shutdown_function()
Submitted: 2018-05-09 18:02 UTC Modified: -
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: teo8976 at gmail dot com Assigned:
Status: Open Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2018-05-09 18:02 UTC] teo8976 at gmail dot com
From manual page:

Somebody notes in the COMMENTS:
from 5.0.5 on objects will be unloaded _before_ your shutdown function is called which means you can't use previously initiated objects

This MUST be mentioned in a "changelog" section (now missing) of the documentation page. It's something that has a huge impact and it can't be just left to a user comment.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-05-27 12:21 UTC] a at b dot c dot de
Well: assuming that this could bite someone who is upgrading for the first time in over a decade, or is working with some really old code...

Is the comment accurate? Or is the problem, the fix, and the resulting warning in the documentation (as discussed in the commentary on the bug cited in the user comment) related specifically to custom session handlers? says that a shutdown function can use previously instantiated objects in every version from 4.3.0 to 7.2.4.
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Dec 16 07:01:25 2018 UTC