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

From: Date: Thu, 22 Jun 2000 21:13:49 +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-21983@lists.php.net to get a copy of this message
RL>> Is there anything stopping us from optionally including the class RL>> definition in the serialization? Wouldn't that make all this go away? Yes there is. 1. THis is plain wrong. Class should be defined by user in PHP, not carried along in sessions. 2. How exactly you are going to carry class members, methods, etc., etc? And why exactly do you need it? 3. And now the fun thing. Imagine derived class. Now you've got to bring along all the class tree up to the root with you. Fun, fun, fun. -- Stanislav Malyshev stas@zend.com +972-3-6139665

« previous php.dev (#21983) next »