Re: [PHP-DEV] [RFC] Modify resolution order of count_elements handler

2008-07-06 Thread Marcus Boerger
Hello Etienne, Wednesday, July 2, 2008, 1:57:06 PM, you wrote: > Hi, > I'd like to fix the resolution order of Countable::count() vs > count_elements handler. > Currently, things are done like this: > 1) check if the object implements countable, if so, call it's method > 2) if not, check if cou

[PHP-DEV] [RFC] Modify resolution order of count_elements handler

2008-07-02 Thread Etienne Kneuss
Hi, I'd like to fix the resolution order of Countable::count() vs count_elements handler. Currently, things are done like this: 1) check if the object implements countable, if so, call it's method 2) if not, check if count_elements handler is defined, if so, use it. This is a problematic order o