|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-12-29 22:30 UTC] mkoppanen@php.net
[2011-05-06 06:34 UTC] tinnyliu at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 15:00:02 2025 UTC |
Description: ------------ 1. set session handler to tokyo_tyrant 2. start session 3. save an object with private/protected properties into $_SESSION 4. check $_SESSION Reproduce code: --------------- <?php class Foo{ private $bar; } session_start(); $_SESSION['foo'] = new Foo; ?> page2.php <?php session_start(); var_dump($_SESSION); ?> Expected result: ---------------- $_SESSION['foo'] is an instance of Foo Actual result: -------------- $_SESSION['foo'] is null