It happens at least when you store class to session.
Under some circumstances the class is stored ok.
Then again, on some others it's still stored ok, but when displaying the session by var_export, it still has the class info, but it says also __PHP_Incomplete_Class.
Currently i'm having a fully ok class in my session, and also a incomplete class. And the actual session file shows both classes completely the same way. How does it know if the other is'nt "complete" class?
Can anyone say anything about this.
Code: Select all
array ( 'logged' => 'true', 'user' => class cUser { public $UserID = '1'; public $Username = 'Shendemiar'; public $Administrator = '1'; public $Visits = '0'; public $EmailAddress = 'something here'; }, 'battle' => class __PHP_Incomplete_Class { public $__PHP_Incomplete_Class_Name = 'cBattle'; public $ID = '1'; public $Number = '1'; public $Name = 'Battle of the Plains'; public $Turn = '0'; public $Scenario = '1'; public $Ruleset = '1'; public $Created = '2004-11-28'; public $Expires = '2005-11-28'; public $Status = '0'; public $Number_of_Sides = '2'; public $Player_ID = array ( 1 => '1', 2 => '2', ); public $Player_Name = array ( 1 => 'Shendemiar', 2 => 'name2', ); public $Leader_Names = array ( 1 => 'Luxor the Moonprince', 2 => 'Timoshenko', ); public $Side_Names = array ( 1 => 'People of Midnight', 2 => 'Soviet Army', ); public $Player_Names_Visible = '1'; public $Side_Playthis = array ( 1 => 1101732143, ); }, )Session file looks like this:
Code: Select all
logged|s:4:"true";user|O:5:"cUser":5:{s:6:"UserID";s:1:"1";s:8:"Username";s:10:"Shendemiar";s:13:"Administrator";s:1:"1";s:6:"Visits";s:1:"0";s:12:"EmailAddress";s:26:"email here";}battle|O:7:"cBattle":16:{s:2:"ID";s:1:"1";s:6:"Number";s:1:"1";s:4:"Name";s:20:"Battle of the Plains";s:4:"Turn";s:1:"0";s:8:"Scenario";s:1:"1";s:7:"Ruleset";s:1:"1";s:7:"Created";s:10:"2004-11-28";s:7:"Expires";s:10:"2005-11-28";s:6:"Status";s:1:"0";s:15:"Number_of_Sides";s:1:"2";s:9:"Player_ID";a:2:{i:1;s:1:"1";i:2;s:1:"2";}s:11:"Player_Name";a:2:{i:1;s:10:"Shendemiar";i:2;s:9:"name2";}s:12:"Leader_Names";a:2:{i:1;s:20:"Luxor the Moonprince";i:2;s:10:"Timoshenko";}s:10:"Side_Names";a:2:{i:1;s:18:"People of Midnight";i:2;s:11:"Soviet Army";}s:20:"Player_Names_Visible";s:1:"1";s:13:"Side_Playthis";a:1:{i:1;i:1101732143;}}