#48860 [NEW]: Data in SplQueue objects is not persistent

From: Date: Thu, 09 Jul 2009 00:28:43 +0000
Subject: #48860 [NEW]: Data in SplQueue objects is not persistent
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-139502@lists.php.net to get a copy of this message
From: dave at dtracorp dot com Operating system: windows xp PHP version: 5.3.0 PHP Bug Type: SPL related Bug description: Data in SplQueue objects is not persistent 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 ( ) ) -- Edit bug report at http://bugs.php.net/?id=48860&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48860&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48860&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48860&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48860&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48860&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48860&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48860&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48860&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48860&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48860&r=support Expected behavior: http://bugs.php.net/fix.php?id=48860&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48860&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48860&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48860&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48860&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48860&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48860&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48860&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48860&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48860&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48860&r=mysqlcfg

« previous php.bugs (#139502) next »