php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38296 $_SESSION['|'] = 1 does crash session file
Submitted: 2006-08-02 13:48 UTC Modified: 2006-08-02 13:53 UTC
From: muhtarov at oviont dot ru Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.1.4 OS: w2k
Private report: No CVE-ID: None
 [2006-08-02 13:48 UTC] muhtarov at oviont dot ru
Description:
------------
separator "|" as key in $_SESSION does crash sess_* file to empty file

Reproduce code:
---------------
session_start();
$_SESSION['|'] = 1;
echo 'See into ' . ini_get('session.save_path') . '/sess_' . session_id() . ' file!'

Expected result:
----------------
Size of file sess_* > 0

Actual result:
--------------
Size of file sess_* = 0

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-02 13:53 UTC] tony2001@php.net
"|" is not valid variable name, this is well expected.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 18:01:28 2024 UTC