#34378 [NEW]: Bugfix done in 5.04 causes serios SESSION-bug!
| From: | mail at lenzw dot de | Date: | Mon, 05 Sep 2005 17:58:20 +0000 |
| Subject: | #34378 [NEW]: Bugfix done in 5.04 causes serios SESSION-bug! | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-84553@lists.php.net to get a copy of this message | ||
From: mail at lenzw dot de
Operating system: Windows XP
PHP version: 5.0.4
PHP Bug Type: Session related
Bug description: Bugfix done in 5.04 causes serios SESSION-bug!
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 bug report at http://bugs.php.net/?id=34378&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34378&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34378&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34378&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34378&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34378&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34378&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34378&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34378&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34378&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34378&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34378&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34378&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34378&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34378&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34378&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34378&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34378&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34378&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34378&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34378&r=mysqlcfg