php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26503 wrong session files
Submitted: 2003-12-02 14:24 UTC Modified: 2003-12-02 14:30 UTC
From: skaufmann at gmx dot net Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.4 OS: Windows XP SP 1
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: skaufmann at gmx dot net
New email:
PHP Version: OS:

 

 [2003-12-02 14:24 UTC] skaufmann at gmx dot net
Description:
------------
PHP generates wrong session files, it adds spaces to the session variables like 

Sample Session file:
status|s:2:"ok ";user|s:20:"admin            ";language|s:3:"de   ";

and the whole session handling doesn't work, maybe something is wrong with the handling of variables because I can't compare a normal entered value (from a form or set in the source) and a value from a Database (MS SQL SERVER) for example: "if ($myPasswd == $passwdFromDB)" doesn't work (I always get false as result but they are equal) but "if ($myPasswd == $myPasswd)" does.... Everything works fine with versions below 4.3.4 I tested it on 2 different machines.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-02 14:27 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

No bug here, if you put 20chars into MSSQL, you get 20 out (including spaces)...
 [2003-12-02 14:30 UTC] sniper@php.net
See also bug #25777

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 28 10:00:03 2025 UTC