Re: Re: com php-src: Fix bug #67064 => Countable interface inconsistency
| From: | Remi Collet | Date: | Wed, 23 Jul 2014 08:57:44 +0000 |
| Subject: | Re: Re: com php-src: Fix bug #67064 => Countable interface inconsistency | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75932@lists.php.net to get a copy of this message | ||
Le 23/07/2014 10:26, Remi Collet a écrit :
> Both solution "should" fix this:
> - adding the count_elements handler
> - accepting the optional mode
Both works.
> But, Reflection still not correct, and count($a) still raise the
IT is ok (sorry for the noise, tested with a bad path...)
> I think this is not consistent (internal vs userland)
Inconsistency is :
$a->count() call the method (with the optional arg),
count($a) call the handler
Rmei.