Hi!
Serialized varibale does not seem to retain its state from classes that were extended.
I have a class, called directly from somewhere that accepts a serialized variable:
class Main extends Admin {
function __construct($serialized){
parent::__construct($serialized);
}
.... (omitted)
}
class Admin extends Page{
var $pageargs;
function __construct($should_still_be_serialized_form){
$this->pageargs = unserialize($should_still_be_serialized_form); }}
In admin class i get error: unserialize() expects parameter 1 to be string, array given in (admin class file)...
Is this the way php handles inheritance? or something is wrong with my code?