Re: Re: cvs: php-src /ext/standard array.c
| From: | Christian Schneider | Date: | Sat, 20 Nov 2004 15:10:05 +0000 |
| Subject: | Re: Re: cvs: php-src /ext/standard array.c | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-13907@lists.php.net to get a copy of this message | ||
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