#36438 [NEW]: _sessions value error
| From: | zbyue at starlight dot net dot cn | Date: | Sat, 18 Feb 2006 01:38:48 +0000 |
| Subject: | #36438 [NEW]: _sessions value error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-93394@lists.php.net to get a copy of this message | ||
From: zbyue at starlight dot net dot cn
Operating system: linux
PHP version: 5.1.2
PHP Bug Type: Session related
Bug description: _sessions value error
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" }
--
Edit bug report at http://bugs.php.net/?id=36438&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36438&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36438&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36438&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36438&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36438&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36438&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36438&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36438&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36438&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36438&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36438&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36438&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36438&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36438&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36438&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36438&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36438&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36438&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36438&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36438&r=mysqlcfg