#45706 [Asn]: Serializing of ArrayIterator extended Objects

From: Date: Fri, 29 Aug 2008 15:01:15 +0000
Subject: #45706 [Asn]: Serializing of ArrayIterator extended Objects
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-128527@lists.php.net to get a copy of this message
ID: 45706 Updated by: dmitry@php.net Reported By: bobka at bigfoot dot com Status: Assigned Bug Type: SPL related Operating System: Linux PHP Version: 5.2.6 Assigned To: colder New Comment: Fixed in CVS HEAD and PHP_5_3. 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

« previous php.bugs (#128527) next »