Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c
| From: | Adam Maccabee Trachtenberg | Date: | Mon, 01 Dec 2003 17:43:28 +0000 |
| Subject: | Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-5917@lists.php.net to get a copy of this message | ||
On Mon, 1 Dec 2003, Andi Gutmans wrote:
> I don't quite understand why SimpleXML can't return a string. Why does it
> need to return an object? It should know how to differentiate between
> read/write mode, and return a string in read mode and a proxy object in
> write mode.
That may be a solution; however, would I still be able to do something
like this:
$s = simplexml_load_file('file.xml');
$s->person->xsearch('/my/xpath/query');
I'd be willing to sacrfice this in order to get the string behavior
back, however.
> I agree that we should allow for SimpleXML's simplicity and I think it's
> one of the coolest features in PHP 5. I definitely want to find a solution
> to allow it to work the way it works today. However, I do want to try and
> prevent the propogation throughout the engine because it's going to give us
> lots of trouble.
I'm with you here. I don't want to cause trouble, I just want them to
work. :)
-adam
--
adam@trachtenberg.com