Bug #10525: Session problem with passing array of objects (related to no 8676 and no 9470)
| From: | oallain at celya dot fr | Date: | Fri, 27 Apr 2001 14:08:56 +0000 |
| Subject: | Bug #10525: Session problem with passing array of objects (related to no 8676 and no 9470) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52584@lists.php.net to get a copy of this message | ||
From: oallain@celya.fr
Operating system: Windows 2000 (NT 5) SP1
PHP version: 4.0.4pl1
PHP Bug Type: *Session related
Bug description: Session problem with passing array of objects (related to no 8676 and no 9470)
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.
--
Edit Bug report at: http://bugs.php.net/?id=10525&edit=1