#23771 [NEW]: 4.3.2RC4 breaks SESSION handling
| From: | fdsoft at pganet dot com | Date: | Fri, 23 May 2003 09:53:53 +0000 |
| Subject: | #23771 [NEW]: 4.3.2RC4 breaks SESSION handling | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-40255@lists.php.net to get a copy of this message | ||
From: fdsoft at pganet dot com
Operating system: Red Hat Linux 7.3
PHP version: 4.3.2RC4
PHP Bug Type: Session related
Bug description: 4.3.2RC4 breaks SESSION handling
PHP 4.3.2RC4's session handling seems to be broken. This did not occur with
RC3 or any PHP version which came before.
The problem seems to be in storing floats in a SESSION.
Sample code:
// floattest1.php:
<?php
session_start();
$_SESSION['test1'] = 'abcdefg';
$_SESSION['blah'] = 6542.2;
$_SESSION['test2'] = 'gfha';
header('location: floattest2.php');
?>
// floattest2.php:
<?php
session_start();
echo '<pre>';
var_dump($_SESSION);
?>
floattest2's output with 4.3.2RC1 (perfectly good):
array(3) {
["test1"]=>
string(7) "abcdefg"
["blah"]=>
float(6542.2)
["test2"]=>
string(4) "gfha"
}
4.3.2RC4's buggy output:
array(3) {
["test1"]=>
string(7) "abcdefg"
["blah"]=>
float(6542.2)
[";test2"]=>
string(4) "gfha"
}
Notice that "test2" somehow got changed to ";test2".
Take a more complex SESSION with more stuff stored inside and you'll see
even more weird results. Values changing place with keys and vice versa,
variables getting their values unexpectedly changed to NULL and so on.
--
Edit bug report at http://bugs.php.net/?id=23771&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23771&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23771&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23771&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23771&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23771&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23771&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23771&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23771&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23771&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23771&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23771&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23771&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23771&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23771&r=gnused