|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-08-07 10:29 UTC] jani@php.net
[2010-04-25 06:22 UTC] colder@php.net
-Type: Bug
+Type: Feature/Change Request
[2011-07-12 17:43 UTC] colder@php.net
[2011-07-12 17:45 UTC] colder@php.net
-Status: Assigned
+Status: To be documented
-Assigned To: colder
+Assigned To:
[2011-07-12 17:45 UTC] colder@php.net
[2012-04-18 09:49 UTC] laruence@php.net
[2012-07-24 23:40 UTC] rasmus@php.net
[2012-11-14 00:48 UTC] levim@php.net
[2012-11-14 00:48 UTC] levim@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: levim
[2013-11-17 09:37 UTC] laruence@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Jan 07 03:00:01 2026 UTC |
Description: ------------ I'm trying to store an SplQueue object in the session, on page reload the SplQueue object is still there, but it has no data. This happens on Windows XP (Apache 2.0.58), but also on Fedora 8 (apache 2.2), and a Debian build running apache 2.2. Reproduce code: --------------- <?php $q = new SplQueue(); $q->enqueue('something'); $q->enqueue('over there'); session_start(); $_SESSION['q'] = $q; ?> on the second page <?php session_start(); $q = $_SESSION['q']; print '<pre>'; print_r($q); Expected result: ---------------- SplQueue Object ( [flags:SplDoublyLinkedList:private] => 4 [dllist:SplDoublyLinkedList:private] => Array ( [0] => something [1] => over there ) ) Actual result: -------------- SplQueue Object ( [flags:SplDoublyLinkedList:private] => 4 [dllist:SplDoublyLinkedList:private] => Array ( ) )