#45706 [Opn->Asn]: Serializing of ArrayIterator extended Objects

From: Date: Mon, 25 Aug 2008 20:43:57 +0000
Subject: #45706 [Opn->Asn]: Serializing of ArrayIterator extended Objects
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-128407@lists.php.net to get a copy of this message
 ID:               45706
 Updated by:       jani@php.net
 Reported By:      bobka at bigfoot dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         SPL related
 Operating System: Linux
 PHP Version:      5.2.6
 Assigned To:      colder


Previous Comments:
------------------------------------------------------------------------

[2008-08-06 16:51:35] bobka at bigfoot dot com

Yes, it happens only with classes that extend ArrayIterator

------------------------------------------------------------------------

[2008-08-06 16:46:37] jani@php.net

Does this happen only with the ArrayIterator?

------------------------------------------------------------------------

[2008-08-06 08:45:17] bobka at bigfoot dot com

The bug is somewhere in "php" or "php_bin" serialize_handler that is
used to serialize _SESSION

------------------------------------------------------------------------

[2008-08-06 08:38:06] bobka at bigfoot dot com

To define the class before session_start is the usual case. But if two
applications use the same session data, where one part of session data
is shared between applications and other are used exclusively, you don't
have to include *all* class definitions in each application. In this
case the part of session data, that is not defined, should be preserved
and not corrupted, shouldn't it?

------------------------------------------------------------------------

[2008-08-04 12:51:07] jani@php.net

The class has to be defined before session_start() call.
Documentation for session seems to lack this little note..

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/45706

-- 
Edit this bug report at http://bugs.php.net/?id=45706&edit=1



Thread (8 messages)

« previous php.bugs (#128407) next »