#34378 [Opn->Fbk]: Bugfix done in 5.04 causes serios SESSION-bug!
| From: | sniper@php.net | Date: | Mon, 05 Sep 2005 21:39:21 +0000 |
| Subject: | #34378 [Opn->Fbk]: Bugfix done in 5.04 causes serios SESSION-bug! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84557@lists.php.net to get a copy of this message | ||
ID: 34378
Updated by: sniper@php.net
Reported By: mail at lenzw dot de
-Status: Open
+Status: Feedback
Bug Type: Session related
Operating System: Windows XP
PHP Version: 5.0.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-09-05 19:58:19] mail at lenzw dot de
Description:
------------
The bugfix I refer to is:
Bug #28324 HTTP_SESSION_VARS appear when Register_long_arrays is Off
The new bug caused by it is simple:
when Register_long_arrays is Off, changes to $_SESSION won't be saved
correctly every time so the next time you do session_start();, you get
an incomplete session.
also see
http://www.codeguru.com/forum/showthread.php?t=341549
the most interesting thing is that of the ~30 values I saved, only 3
values were actually set.
my theory is that the first time it's run, everything saves correct but
not any more the 2nd or 3rd time
Reproduce code:
---------------
first time running:
-
session_start();
$_SESSION['xyz']="abc";
second time running:
-
session_start();
print_r($_SESSION);
$_SESSION['abc']="def";
third time running:
-
session_start();
print_r($_SESSION);
Expected result:
----------------
2st:
Array
(
[xyz] => "abc"
)
3rd:
Array
(
[xyz] => "abc"
[abc] => "def"
)
Actual result:
--------------
2st:
Array
(
[xyz] => "abc"
)
3rd:
Array
(
[xyz] => "abc"
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34378&edit=1