Having troubles with (un)serialization of my cart object.. The data does transfer ok, but it doesn't come out on the other side as being an object of type Cart.. It's possibly due to the fact that I don't have any __sleep() or __wakeup() functions, but I was hoping I wouldn't need to as it's really just an array with functions.
http://www.proteus3d.net/ps2/test_cart.php
http://www.proteus3d.net/ps2/test_cart2.php
Cart Class Definition
The error I get:
Quote:
Retrieving session cart:
__PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] => cart [items] => Array ( [1234567890] => 2 [0987654321] => 1 ) )
|
As you can see, the data does travel through, but I get this __PHP_Incomplete_Class Object stuff.. Any ideas??