ID:               44324
 Updated by:       [EMAIL PROTECTED]
 Reported By:      Pasuk2003 at mail dot ru
-Status:           Open
+Status:           Bogus
 Bug Type:         Session related
 Operating System: WIndows XP SP2
 PHP Version:      5.2.5
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php



Says the documentation:
"The keys in the $_SESSION associative array are subject to the same
limitations as regular variable names in PHP, i.e. they cannot start
with a number and must start with a letter or underscore. For more
details see the section on variables in this manual."

http://docs.php.net/manual/en/session.examples.php


Previous Comments:
------------------------------------------------------------------------

[2008-03-04 15:57:47] Pasuk2003 at mail dot ru

Description:
------------
When using $_SESSION and trying to store there something in key=0, the
whole session data is not 'magically' :) present in the next page load

Reproduce code:
---------------
<?php
session_start();
var_export($_SESSION);
$_SESSION[0]=array( ... );
?>

Expected result:
----------------
-- first load:
array()

-- second load
array( 0 => array( ... ) )

Actual result:
--------------
-- first load:
array()

-- second load
array()


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=44324&edit=1

Reply via email to