Doc #75704 [Opn->Ver]: Document that objects in sessions are automatically serialized & unserialized.
| From: | cmb@php.net | Date: | Wed, 09 Dec 2020 15:36:53 +0000 |
| Subject: | Doc #75704 [Opn->Ver]: Document that objects in sessions are automatically serialized & unserialized. | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18226@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75704&edit=1
ID: 75704
Updated by: cmb@php.net
Reported by: ww dot galen at gmail dot com
Summary: Document that objects in sessions are automatically
serialized & unserialized.
-Status: Open
+Status: Verified
Type: Documentation Problem
Package: Session related
Operating System: n/a
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
I don't think it actually makes sense to describe session
(un)serialization behavior on that page. That should better be
done in the session documentation or on the $_SESSION page; a link
to that documentation could be added to the serialization docs.
Anyhow, the session_register() referrals need to be removed from
that page.
Previous Comments:
------------------------------------------------------------------------
[2017-12-19 00:28:12] ww dot galen at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/language.oop5.serialization
---
The object serialization & sessions manual page gives the impression that the only way to
automatically have an object be serialized and unserialized is through the use of the long since
removed
session_register(). It could use an update that explicitly states that objects
in $_SESSION get serialized & unserialized automatically (with the latter being
triggered by session_start()).
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75704&edit=1