Re: [PHP-DEV] count() doesn't work on overloaded objects

2004-04-23 Thread George Schlossnagle
On Apr 23, 2004, at 9:24 AM, Wez Furlong wrote: While solving http://bugs.php.net/bug.php?id=27974, we've discovered that count() on an overloaded object (in this case, a variant object representing an OLE SafeArray) doesn't return a truthful value. What, if anything, are we going to do about that

Re: [PHP-DEV] count() doesn't work on overloaded objects

2004-04-23 Thread Andi Gutmans
Okay. I'll release RC2 without it. There have been too many important fixes, and this seems to be an old bug. Keep me posted when you manage to nail things down. I'll talk to Zeev about count() and see what he thinks. Andi At 03:32 PM 4/23/2004 +0100, Wez Furlong wrote: > >We could add a hook

Re: [PHP-DEV] count() doesn't work on overloaded objects

2004-04-23 Thread Wez Furlong
> >We could add a hook to the C iterator API for count(); > >it shouldn't have a huge impact on the rest of the engine. > > I'm not sure if the Iterators API is the right place (it's an API for > foreach()). I guess it could be in either the Iterators API or the Object > API. What would you expect

Re: [PHP-DEV] count() doesn't work on overloaded objects

2004-04-23 Thread Andi Gutmans
At 02:24 PM 4/23/2004 +0100, Wez Furlong wrote: While solving http://bugs.php.net/bug.php?id=27974, we've discovered that count() on an overloaded object (in this case, a variant object representing an OLE SafeArray) doesn't return a truthful value. What, if anything, are we going to do about that?

[PHP-DEV] count() doesn't work on overloaded objects

2004-04-23 Thread Wez Furlong
While solving http://bugs.php.net/bug.php?id=27974, we've discovered that count() on an overloaded object (in this case, a variant object representing an OLE SafeArray) doesn't return a truthful value. What, if anything, are we going to do about that? We could add a hook to the C iterator API for