Doc #76317 [Fbk->NoF]: Undocumented change from PHP 5.0.5 about register_shutdown_function()

From: Date: Sun, 13 Jan 2019 04:22:04 +0000
Subject: Doc #76317 [Fbk->NoF]: Undocumented change from PHP 5.0.5 about register_shutdown_function()
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16328@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76317&edit=1 ID: 76317 Updated by: php-bugs@lists.php.net Reported by: teo8976 at gmail dot com Summary: Undocumented change from PHP 5.0.5 about register_shutdown_function() -Status: Feedback +Status: No Feedback Type: Documentation Problem Package: Documentation problem PHP Version: >= 5.0.5 Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2019-01-02 00:53:30] girgias@php.net It doesn't seem like this bug is valid imho. ------------------------------------------------------------------------ [2018-05-27 12:21:30] 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. ------------------------------------------------------------------------ [2018-05-09 18:02:59] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76317&edit=1

« previous php.doc.bugs (#16328) next »