Re: PHP 4.0 Bug #5152: Object passed in a session generateserrors when member functions are called
| From: | Andrei Zmievski | Date: | Fri, 23 Jun 2000 13:20:13 +0000 |
| Subject: | Re: PHP 4.0 Bug #5152: Object passed in a session generateserrors when member functions are called | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-22054@lists.php.net to get a copy of this message | ||
On Thu, 22 Jun 2000, Bug Hunter wrote:
> I _really_ like the idea of allowing an object to be serialized, warts
> and all. I can see all kinds of uses for prepackaged objects that come
> out of a deep freeze completely ready to go.
>
> I was told years ago that no one would ever want a personal computer.
> The person that told me that still believes it. He is correct. People
> like him don't want such a thing, or need it. Others, however, have
> adopted it, even though it is the "wrong" thing to do.
That is such a bad idea. Serializing opcodes just begs for trouble -
Zend internal structure might change between the time you store and load
an object and then what? There is a reason why OOP has concepts such as
encapsulation.
-Andrei
The Heineken Uncertainty Principle:
You can never be sure how many beers you had last night.