From: rob dot brenart at tradingtechnologies dot com
Operating system: Windows XP
PHP version: 4.3.4
PHP Bug Type: Session related
Bug description: Numeric Keys for session variables are lost
Description:
------------
Perhaps it's intentional as variables aren't supposed to be numeric, but
seeing as it's the $_SESSION array, I figured this would be allowed.
Reproduce code:
---------------
<?php
session_start();
echo '<pre>';
print_r($_SESSION);
echo '<hr>';
$_SESSION[167]='hi world';
print_r($_SESSION);
echo '<a href="test1.php">Here ya go</a>';
?>
Expected result:
----------------
Array
(
[167] => hi world
)Array
(
[167] => hi world
)
Here ya go
Actual result:
--------------
Array
(
)
Array
(
[167] => hi world
)
Here ya go
--
Edit bug report at http://bugs.php.net/?id=27078&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27078&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27078&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27078&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27078&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27078&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27078&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27078&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27078&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27078&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27078&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27078&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27078&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27078&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27078&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27078&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27078&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27078&r=float