php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7676 session_register doesn't save classes anymore!
Submitted: 2000-11-07 12:22 UTC Modified: 2000-11-27 07:26 UTC
From: pmjo at saunalahti dot fi Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.3pl1 OS: Linux
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: pmjo at saunalahti dot fi
New email:
PHP Version: OS:

 

 [2000-11-07 12:22 UTC] pmjo at saunalahti dot fi
My problem is:

I have made a web shop. It stores ShoppingCart class in
sessions. (using session_register)

Before I used php 4.0 and it worked fine.

Now I upgraded to 4.0.3pl1 and the shoppingcart will not be saved anymore. (to the session file)

Is this a bug or should session_register only work with variables and arrays ? not with classes ? 

Damn. It was very nice when I were able to save a class in session. Now I'm in big big big trouble with my shop. :/

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-27 07:15 UTC] sniper@php.net
reclassify
 [2000-11-27 07:26 UTC] sniper@php.net
And this is fixed in CVS now.
Please try latest snapshot from http://snaps.php.net/

--Jani

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 21:00:01 2026 UTC