|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-09-01 06:25 UTC] aharvey@php.net
-Status: Open
+Status: Bogus
[2010-09-01 06:25 UTC] aharvey@php.net
[2010-09-01 12:56 UTC] dotpointer at gmail dot com
[2011-02-13 03:12 UTC] paulbc1 at hotmail dot com
[2011-02-18 23:44 UTC] paulbc1 at hotmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 05:00:01 2025 UTC |
Description: ------------ Array keys in $_SESSION containing exclamation marks (!) does not seem to work anymore as of 5.3.3. Have tried key with different characters like #, " and £ - these worked. Using "!" in the key seems not only to be unregistered but also to make the whole $_SESSION to be unset in the next run. This worked before, as in 5.2.x. Test script: --------------- <? # (as we're talking sessions, this example need to be run 2 times to set the session data, push F5...) session_start(); $name = 'hello'; # this does work, uncomment/comment to test $name = 'hello!'; # this does not, uncomment/comment to test echo $_SESSION[$name]; $_SESSION[$name] = 'OK'; ?> Expected result: ---------------- That array keys containing exclamation marks ("!") either give a understandable error or does work as any other key. Actual result: -------------- The whole array is being totally empty if a key containing exclamation mark is entered.