Re: count() doesn't work on overloaded objects

From: Date: Fri, 23 Apr 2004 14:06:53 +0000
Subject: Re: count() doesn't work on overloaded objects
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-9501@lists.php.net to get a copy of this message
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? 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 it to return as far as PPP properties is concerned? By the way, I was holding off RC2 because of that bug you found. Any news? Can I roll RC2? Andi

« previous php.internals (#9501) next »