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 talked about this with Marcus a few months ago. I think that objects which implement the necessary interfaces should work as arrays in all the standard array functions. Marcus had an old patch for this that I would be happy to help update if people are keen on this idea.
George
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php