I ran into this problem trying to run a PHP4 program in PHP5:
A class implements persistence by serializing itself and saving the string
to a file. In the constructor, the object restores itself by setting $this
to the result from unserialize(). In PHP4, this is legal. In PHP5 I get an
error. How do I fix this aside from manually copying the object properties?
A class implements persistence by serializing itself and saving the string
to a file. In the constructor, the object restores itself by setting $this
to the result from unserialize(). In PHP4, this is legal. In PHP5 I get an
error. How do I fix this aside from manually copying the object properties?
Comment