php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36438 _sessions value error
Submitted: 2006-02-18 02:38 UTC Modified: 2006-02-26 01:00 UTC
From: zbyue at starlight dot net dot cn Assigned:
Status: No Feedback Package: Session related
PHP Version: 5.1.2 OS: linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-02-18 02:38 UTC] zbyue at starlight dot net dot cn
Description:
------------
$_SESSION['authorized'] = "ddde"; 
$_SESSION['userid'] = "0294"; 
$_SESSION['name'] = "george"; 

$a = count($_SESSION);
if ($a>0) {
	var_dump($_SESSION);
}

exec 1 result:
array(3) { ["authorized"]=>  string(4) "ddde" ["userid"]=>  string(4) "0294" ["name"]=>  string(6) "george" } 
exec 2 result:
array(5) { ["authorized"]=>  string(4) "ddde" ["s?:"ddde";userid"]=>  NULL ["s?:"0294";name"]=>  NULL ["userid"]=>  string(4) "0294" ["name"]=>  string(6) "george" } 
exec 3 result:
array(5) { ["authorized"]=>  string(4) "ddde" ["s?:"ddde";s?:"ddde";userid"]=>  NULL ["s?:"0294";name"]=>  NULL ["userid"]=>  string(4) "0294" ["name"]=>  string(6) "george" } 
exec 4 result:
array(5) { ["authorized"]=>  string(4) "ddde" ["s?:"ddde";s?:"ddde";s?:"ddde";userid"]=>  NULL ["s?:"0294";name"]=>  NULL ["userid"]=>  string(4) "0294" ["name"]=>  string(6) "george" } 
exec 5 result:
array(5) { ["authorized"]=>  string(4) "ddde" ["s?:"ddde";s?:"ddde";s?:"ddde";s?:"ddde";userid"]=>  NULL ["s?:"0294";name"]=>  NULL ["userid"]=>  string(4) "0294" ["name"]=>  string(6) "george" } 
exec 6 result:
array(5) { ["authorized"]=>  string(4) "ddde" ["s?:"ddde";s?:"ddde";s?:"ddde";s?:"ddde";s?:"ddde";userid"]=>  NULL ["s?:"0294";name"]=>  NULL ["userid"]=>  string(4) "0294" ["name"]=>  string(6) "george" }
exec 7 result:
array(5) { ["authorized"]=>  string(4) "ddde" ["s?:"ddde";s?:"ddde";s?:"ddde";s?:"ddde";s?:"ddde";s?:"ddde";userid"]=>  NULL ["s?:"0294";name"]=>  NULL ["userid"]=>  string(4) "0294" ["name"]=>  string(6) "george" } 



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-18 17:17 UTC] derick@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip

I can not reproduce this...
 [2006-02-26 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 17:01:28 2024 UTC