Doc #76317 [Com]: Undocumented huge change about register_shutdown_function()

From: Date: Sun, 27 May 2018 12:21:33 +0000
Subject: Doc #76317 [Com]: Undocumented huge change about register_shutdown_function()
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15721@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
 Comment by:         a at b dot c dot de
 Reported by:        teo8976 at gmail dot com
 Summary:            Undocumented huge change about
                     register_shutdown_function()
 Status:             Open
 Type:               Documentation Problem
 Package:            Documentation problem
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[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


Thread (4 messages)

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