php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10525 Session problem with passing array of objects (related to no 8676 and no 9470)
Submitted: 2001-04-27 10:08 UTC Modified: 2001-06-27 11:32 UTC
From: oallain at celya dot fr Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.4pl1 OS: Windows 2000 (NT 5) SP1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: oallain at celya dot fr
New email:
PHP Version: OS:

 

 [2001-04-27 10:08 UTC] oallain at celya dot fr
I'd a problem of lost informations between two parses of PHP.

In the first parse, I'd a clean session which looks like this :
----------------------
data_ticker|a:2:{i:0;O:16:"newslist_indices":7:{s:5:"TITLE";s:9:"ACCOR STK";s:4:"LAST";s:5:"46.88";s:4:"CHGT";s:4:"1.39";s:4:"PRCT";s:4:"3.06";s:8:"EXCHANGE";s:10:"SBF       ";s:3:"URL";s:60:"http://www.cityquote.com/bmp/data_details.php?index_id=43232";s:11:"PUBLISHDATE";s:12:"26/04/2001  ";}i:1;O:16:"newslist_indices":7:{s:5:"TITLE";s:15:"AIR LIQUIDE STK";s:4:"LAST";s:5:"162.3";s:4:"CHGT";s:4:"-0.4";s:4:"PRCT";s:5:"-0.25";s:8:"EXCHANGE";s:10:"SBF       ";s:3:"URL";s:60:"http://www.cityquote.com/bmp/data_details.php?index_id=43233";s:11:"PUBLISHDATE";s:12:"26/04/2001  ";}}
-----------------------

And then after the second parse (after of course a 'session_start()'), the session looks like this :
----------------------
data_ticker|a:2:{i:0;O:16:"newslist_indices":8:{s:5:"TITLE";s:9:"ACCOR STK";s:4:"LAST";s:5:"46.88";s:4:"CHGT";s:4:"1.39";s:4:"PRCT";s:4:"3.06";s:8:"EXCHANGE";s:10:"SBF       ";s:3:"URL";s:60:"http://www.cityquote.com/bmp/data_details.php?index_id=43232";s:11:"PUBLISHDATE";s:12:"26/04/2001  ";}i:1;O:16:"newslist_indices":8:{s:5:"TITLE";s:15:"AIR LIQUIDE STK";s:4:"LAST";s:5:"162.3";s:4:"CHGT";s:4:"-0.4";s:4:"PRCT";s:5:"-0.25";s:8:"EXCHANGE";s:10:"SBF       ";s:3:"URL";s:60:"http://www.cityquote.com/bmp/data_details.php?index_id=43233";s:11:"PUBLISHDATE";s:12:"26/04/2001  ";}}
-----------------------

The only thing that changes is the number of properties had changed. It was 7 and then 8, thus, with a print_r functions, I've a "__PHP_Incomplete_Class Object" :

Array ( [0] => __PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] => newslist_indices [TITLE] => ACCOR STK [LAST] => 46.88 [CHGT] => 1.39 [PRCT] => 3.06 [EXCHANGE] => SBF [URL] => http://www.cityquote.com/bmp/data_details.php?index_id=43232 [PUBLISHDATE] => 26/04/2001 ) [1] => __PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] => newslist_indices [TITLE] => AIR LIQUIDE STK [LAST] => 162.3 [CHGT] => -0.4 [PRCT] => -0.25 [EXCHANGE] => SBF [URL] => http://www.cityquote.com/bmp/data_details.php?index_id=43233 [PUBLISHDATE] => 26/04/2001 ))

Austin.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-14 23:34 UTC] sniper@php.net
Duplicate of #8676

 [2001-06-27 11:32 UTC] sniper@php.net
fixed in CVS

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 00:01:29 2025 UTC