ID:               44057
 User updated by:  galaxy dot mipt at gmail dot com
 Reported By:      galaxy dot mipt at gmail dot com
 Status:           Open
-Bug Type:         Documentation problem
+Bug Type:         Session related
 Operating System: Linux 2.6.9
 PHP Version:      5.2.5
 New Comment:

My apologize for that I am changing the category but there is still a
bit of a problem with session store if one actually tries to put invalid
stuff to $_SESSION, as I described.
Also, is it possible to emerge a warning at some stage if an invalid
key is put to $_SESSION - guess it is something worth to be done along
with the notes in docs.


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

[2008-02-13 18:27:20] [EMAIL PROTECTED]

This needs to be told in the manual. Even as $_SESSION and
$HTTP_SESSION_VARS look different they're essentially same thing. (dunno
how to say this better..just don't do it! :)

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

[2008-02-05 23:02:13] galaxy dot mipt at gmail dot com

Description:
------------
Looks like session data gets corrupted at serialization step if one
attempts to store certain variables in session, namely
HTTP_SESSION_VARS. As far as I understand it is a desired behavior that
var with that name doesn't get saved in session (still it is *really*
worth mentioning that in documentation on sessions), but it seems to
have some side effects on successive variables passed to the session.

Reproduce code:
---------------
session_start();

print '<pre>';
print_r($_SESSION);
print '</pre>';

$_SESSION['qwerty'] = 1;
$_SESSION['HTTP_SESSION_VARS'] = 2;
$_SESSION['ABC'] = 'qqq';

Expected result:
----------------
First call:
Array
(
)

Later calls:
Array
(
    [qwerty] => 1
    [ABC] => qqq
)

Actual result:
--------------
First call:
Array
(
)

Later calls:
Array
(
    [qwerty] => 1
    [i:2;ABC] => qqq
)


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


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

Reply via email to