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

From: Date: Wed, 02 Jan 2019 00:53:30 +0000
Subject: Doc #76317 [Opn->Fbk]: 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-16276@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: girgias@php.net Reported by: teo8976 at gmail dot com -Summary: Undocumented huge change about register_shutdown_function() +Summary: Undocumented change from PHP 5.0.5 about register_shutdown_function() -Status: Open +Status: Feedback Type: Documentation Problem Package: Documentation problem -PHP Version: Irrelevant +PHP Version: >= 5.0.5 Block user comment: N Private report: N New Comment: It doesn't seem like this bug is valid imho. Previous Comments: ------------------------------------------------------------------------ [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 (#16276) next »