php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31166 Session Corruption of certain vars
Submitted: 2004-12-18 01:02 UTC Modified: 2004-12-28 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: jeffb at gpscity dot com Assigned:
Status: No Feedback Package: Session related
PHP Version: 4.3.9 OS: Red Hat Linux release 7.2 (NTT/V
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-12-18 01:02 UTC] jeffb at gpscity dot com
Description:
------------
I.m running:
- PHP 4.3.9
- Apache 1.3.33
- Red Hat Linux release 7.2 (NTT/VERIO EWH)

Some session variable values are getting written in the session file as "spacer".  Yet all other variables are getting written correctly!  When i set the session var & print out the $_SESSION array, it is showing the value of the variable exactly as I set it. i.e.  I'm setting SKU to one of our valid SKU's:
$_SESSION['SKU'] = "iway500c";
print_r($_SESSION);
Array
(
    [mycountry] => USA
    [mainhost] => localhost
    [environment] => local
    [SKU] => iway500c
)    

but in the session file written in /tmp it gets saved like this:
mycountry|s:3:"USA";mainhost|s:9:"localhost";environment|s:5:"local";SKU|s:6:"spacer";

I can change the name of the var to SKU2 or even my initials(JB), & even the value to a different sku such as sp2620, but it always gets saved as spacer, no matter what!!!

Any response would be appreciated?

Regards,
Jeff Brown



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-18 03:50 UTC] sniper@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.


 [2004-12-28 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 12:01:27 2024 UTC