Re: PHP 4.0 Bug #5152: Object passed in a session generateserrors when member functions are called

From: Date: Thu, 22 Jun 2000 21:41:27 +0000
Subject: Re: PHP 4.0 Bug #5152: Object passed in a session generateserrors when member functions are called
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-21991@lists.php.net to get a copy of this message
SS>> Um, the serializer does not have any concept of sessions. SS>> What you are suggesting would need a redesign of the session SS>> and serializer stuff. Why would be it? Serializer just returns you the variable, isn't it? Now just tell it if it meets undefined class, to do some trick defining it and putting it in the class table you provide to it (as a parameter). Now session decoder doesn't put the variable from deserializer into PHP namespace, it just hides it. Only problem I see is class definition. In fact, we could put this class even in global class table if it's too hard to do otherwise, and peek the name that nobody would call it with (any name starting with \0 will do, I think). -- Stanislav Malyshev stas@zend.com +972-3-6139665

« previous php.dev (#21991) next »