Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c

From: Date: Mon, 01 Dec 2003 17:45:52 +0000
Subject: Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-5918@lists.php.net to get a copy of this message
On Dec 1, 2003, at 11:52 AM, Marcus Boerger wrote:
Hello Stanislav, Monday, December 1, 2003, 5:05:14 PM, you wrote: DR>>> To make it simple to use? I agree with Adam here, with the new
It may make one particular case of use simple. It would make understanding even this case complicated, and will complicate a lot of other cases of which we didn't think now.
If you don't understand XML then it is harder to understand. If you do then you are now basically forced to do fucking code like DOM - thanks - no more simple.
One possible solution is to just fix simplexml. If you have a node that has no descendants, cast it as a string (or better yet, add Schema parsing and recast it as the correct PHP type.). That aside, I agree with Adam, Derick and Marcus that as is the __toString method has high WTF factor and low usability. George

« previous php.internals (#5918) next »