Marcus Boerger wrote:
Mabe you should look here at the engine description in Zend directory of
you PHP source.

Ok, thanks for you summary. I read that and had a look at ZEND_CHANGES.

- [] is overloaded by interface ArrayAccess (this is engine level only
  count() is missing here)
- count() is overloaded by SPL interface Countable.

So basically the question is to whether to 1) add a new function __count 2) add a new interface Countable

After reading all this I'm in favor of the interface as one would then normally use "implements Countable, ArrayAccess" instead of a mix of ArrayAccess and the __count method.

Ok, I shut up now :-)
- Chris

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



Reply via email to