Re: Missing __toString() part
| From: | Andi Gutmans | Date: | Sun, 04 Jun 2006 15:36:03 +0000 |
| Subject: | Re: Missing __toString() part | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23933@lists.php.net to get a copy of this message | ||
At 08:22 AM 6/4/2006, Stanislav Malyshev wrote:
MB>> the classname doesn't help, it is the handler that you need. In MB>>theory you can have two objects with the same id and classname but not MB>>with the same id and handler table. Yes, theoretically you could have two modules returning same class names for their objects, though it would be extremely bad practice to do it. Bigger problem is, however, that object handler doesn't really have to give you any meaningful class name at all - for all it worth it can always return something like "No class name".We should probably make this a requirement and I don't know of one today that doesn't have an associated class name. I believe some parts of PHP might blow up if this isn't supported. Andi