Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9501 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13087 invoked by uid 1010); 23 Apr 2004 14:06:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 13061 invoked from network); 23 Apr 2004 14:06:57 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 23 Apr 2004 14:06:57 -0000 Received: (qmail 9789 invoked from network); 23 Apr 2004 14:06:56 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 23 Apr 2004 14:06:56 -0000 Message-ID: <5.1.0.14.2.20040423170533.036b8160@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 23 Apr 2004 17:06:53 +0300 To: "Wez Furlong" , In-Reply-To: <002d01c42936$690a44f0$8e018552@tron> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] count() doesn't work on overloaded objects From: andi@zend.com (Andi Gutmans) References: <002d01c42936$690a44f0$8e018552@tron> 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