|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76317 Undocumented change from PHP 5.0.5 about register_shutdown_function()
Submitted: 2018-05-09 18:02 UTC Modified: 2019-01-13 04:22 UTC
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: teo8976 at gmail dot com Assigned:
Status: No Feedback Package: Documentation problem
PHP Version: >= 5.0.5 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:
Solve the problem:
29 - 5 = ?
Subscribe to this entry?

 [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.
 [2019-01-02 00:53 UTC]
-Summary: Undocumented huge change about register_shutdown_function() +Summary: Undocumented change from PHP 5.0.5 about register_shutdown_function() -Status: Open +Status: Feedback -PHP Version: Irrelevant +PHP Version: >= 5.0.5
 [2019-01-02 00:53 UTC]
It doesn't seem like this bug is valid imho.
 [2019-01-13 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Dec 02 16:01:23 2020 UTC