So allowing passing objects to array stuff using HASH_OF can lead to
unexpected behavior. Dropping the old behavior makes this clear ... but
is bad for stuff like ArrayObject.

I'm not sure whether we should add special rules for a single class
though ..

johannes

The exception should be made for any class implementing the relevant SPL interfaces, and that's not just ArrayObject.

It may be seen as just "one class" but actually all of the "transparent" iterator implementations (for iterating SQL, XML, or whatever data you have) hinge on those interfaces and that class to work as a normal array with the array functions.

Regards, Stan Vassilev



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to