|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-26 18:59 UTC] helly@php.net
[2006-02-28 02:28 UTC] dave at dgx dot cz
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 02:00:01 2025 UTC |
Description: ------------ If any session key contains character '|', the whole session will not be saved (and will be erased!) Reproduce code: --------------- <?php session_start(); $_SESSION['La'] = 'Trine'; $_SESSION['a|b'] = 'the killer'; session_write_close(); // test session_start(); var_dump($_SESSION); ?> Expected result: ---------------- array(2) { ["La"]=> string(5) "Trine" ["a|b"]=> string(10) "the killer" } Actual result: -------------- PHP 4.3.9-4.4.2 & 5.0.2-5.1.2 array(0) { } PHP 5.0.0-5.0.1 and previous PHP4 array(3) { ["La"]=> string(5) "Trine" ["a"]=> NULL ["b"]=> string(10) "the killer" }