PHP :: Doc Bug #76317 :: Undocumented huge change about register_shutdown_function()
php.net |  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: -
Votes:1
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
Description:
------------
---
From manual page: http://www.php.net/function.register-shutdown-function
---

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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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?

https://3v4l.org/9k5XJ 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: Sat Aug 18 12:01:26 2018 UTC