php.net |  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
Votes:1
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
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.
 [2019-01-02 00:53 UTC] girgias@php.net
-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] girgias@php.net
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-2019 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 14:01:29 2019 UTC