#44057 [Opn->Csd]: Session vars weird behavior
| From: | kalle@php.net | Date: | Wed, 13 Jan 2010 02:20:42 +0000 |
| Subject: | #44057 [Opn->Csd]: Session vars weird behavior | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3686@lists.php.net to get a copy of this message | ||
ID: 44057
Updated by: kalle@php.net
Reported By: galaxy dot mipt at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Linux 2.6.18
PHP Version: 5.2.5
New Comment:
I don't really think we should document such behaviour, its not very
likely that the user will try to play with superglobals like that and if
they should they should be prepared for such issues.
Previous Comments:
------------------------------------------------------------------------
[2009-04-21 07:53:08] dypa at bk dot ru
5.2.9-2 Windows NT DYPA 5.1 build 2600
1st:
Array
(
)
2nd:
Array
(
[qwerty] => 1
[i:2;ABC] => qqq
)
------------------------------------------------------------------------
[2009-03-28 20:47:14] galaxy dot mipt at gmai dot com
Yeah, php handler gives bug, php_binary - warnings, wddx gives this:
Array
(
[qwerty] => 1
[HTTP_SESSION_VARS] => 2
[ABC] => qqq
)
PHP 5.2.9
------------------------------------------------------------------------
[2009-02-10 17:47:34] rquadling@php.net
This directive became available in PHP 5.0.0 and was dropped in PHP
6.0.0.
Turning them on seems to work as expected. No corruption on
5.3.0beta2-dev (Build Date Feb 10 2009 12:47:18)
What type of session.serialize_handler are you using? I get the error
in the beta with php, but not with wddx.
With php_binary I get a load of warnings.
Warning: session_start() [function.session-start.html]: Trying to
destroy uninitialized session in D:\Data\Web Sites\Development\Web
Reports\public_html\sess.php on line 2
Warning: session_start() [function.session-start.html]: Failed to
decode session object. Session has been destroyed in D:\Data\Web
Sites\Development\Web Reports\public_html\sess.php on line 2
Warning: session_start() [function.session-start.html]: Cannot send
session cache limiter - headers already sent (output started at
D:\Data\Web Sites\Development\Web Reports\public_html\sess.php:2) in
D:\Data\Web Sites\Development\Web Reports\public_html\sess.php on
line 2
Array
(
[qwerty] => 1
)
Array
(
[qwerty] => 1
)
------------------------------------------------------------------------
[2009-02-10 15:57:18] philip@php.net
That's only because register_long_arrays is off.
------------------------------------------------------------------------
[2009-02-10 12:54:09] rquadling@php.net
Currently, the documentation says that $HTTP_SESSION_VARS is
deprecated. and in V5.3.0 betas, there is no $HTTP_SESSION_VARS
So, is this still an ongoing problem?
<?php var_dump($HTTP_SESSION_VARS); ?>
Notice: Undefined variable: HTTP_SESSION_VARS
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/44057
--
Edit this bug report at http://bugs.php.net/?id=44057&edit=1