php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #75704 Document that objects in sessions are automatically serialized & unserialized.
Submitted: 2017-12-19 00:28 UTC Modified: 2019-01-01 22:21 UTC
From: ww dot galen at gmail dot com Assigned:
Status: Open Package: Session related
PHP Version: Irrelevant OS: n/a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
48 + 40 = ?
Subscribe to this entry?

 
 [2017-12-19 00:28 UTC] 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()`).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-01 22:21 UTC] girgias@php.net
-Package: Documentation problem +Package: Session related
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Aug 21 20:01:27 2019 UTC