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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: muhtarov at oviont dot ru
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 18:01:32 2025 UTC