Re: SimpleXML and Default Cast To String
| From: | Zeev Suraski | Date: | Tue, 13 Jan 2004 23:04:00 +0000 |
| Subject: | Re: SimpleXML and Default Cast To String | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7077@lists.php.net to get a copy of this message | ||
At 19:32 13/01/2004, Andrei Zmievski wrote:
On Tue, 13 Jan 2004, Marcus Boerger wrote: The problem here are virtual properties that are not stored via a hashtable in the object. The problem (of course) is that the read (RW) handler creates a temp container for the property value. As a consequence the changed value needs to be written back using the write handler. To accomplish that we have two options: a) Chnage the signature of the read handler so it returns whether ot not the prop is a virtual prop and use write after the change if so. b) Somehow identify the situation and print out a E_ERROR. Isn't that what Stas's proxy object system was supposed to solve? I've been trying to get an answer as to whether it works or not for a while now.Yes, it works, the 'problem' is that it's really very very simple. 99% of the work is upto the implementor of the particular proxy object... It just gives you a very general framework. Zeev