Re: cvs: php-src(PHP_5_3) / NEWS /ext/soap php_encoding.c /ext/soap/tests server030.phpt server030.wsdl
| From: | Joshua Reese | Date: | Thu, 27 Dec 2007 17:03:47 +0000 |
| Subject: | Re: cvs: php-src(PHP_5_3) / NEWS /ext/soap php_encoding.c /ext/soap/tests server030.phpt server030.wsdl | ||
| References: | 1 2 3 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-47618@lists.php.net to get a copy of this message | ||
Maybe a better solution would be to check if the object implements ArrayAccess and the getArrayCopy method exists in the object's class? If it does not exist then it would behave as it does right now and not encode anything, or we could have it throw an encoding exception.
-Joshua
Dmitry Stogov wrote:
I think you are right. The patch makes not a lot of sense without support for ArrayAccess. I would prefer to revert it back (at least in this time). Joshua? Thanks. Dmitry. Hannes Magnusson wrote:On Dec 27, 2007 2:10 PM, Dmitry Stogov <dmitry@php.net> wrote:You don't think this is going to be confusing for the users in the end? Slowly adding support for ArrayObject and ArrayIterator (but not ArrayAccess) to random extensions... Then within few releases you can use ArrayObject/Iterators here, here and here - but not there... Should we maybe start a list of functions/extensions where you can use "SPL Arrays"? -Hannes ps _please_ use the [DOC] tag if you want new features to be documented by the phpdoc team.dmitry Thu Dec 27 13:10:20 2007 UTCAdded files: (Branch: PHP_5_3) /php-src/ext/soap/tests server030.phpt server030.wsdlModified files:/php-src NEWS /php-src/ext/soap php_encoding.cLog: Added ability to use SplArrays instead of plain arrays in ext/soap. (Joshua Reese, Dmitry)