Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9519 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28717 invoked by uid 1010); 23 Apr 2004 17:19:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 27894 invoked from network); 23 Apr 2004 17:19:18 -0000 Received: from unknown (HELO longsword.omniti.com) (66.80.117.3) by pb1.pair.com with SMTP; 23 Apr 2004 17:19:17 -0000 Received: from [66.80.117.2] (helo=[10.80.116.129]) by longsword.omniti.com with asmtp (TLSv1:RC4-SHA:128) (Exim 4.14) id 1BH0lH-0004XM-JD; Fri, 23 Apr 2004 09:30:35 -0400 In-Reply-To: <002d01c42936$690a44f0$8e018552@tron> References: <002d01c42936$690a44f0$8e018552@tron> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: Content-Transfer-Encoding: 7bit Cc: Date: Fri, 23 Apr 2004 09:32:32 -0400 To: "Wez Furlong" X-Mailer: Apple Mail (2.613) Subject: Re: [PHP-DEV] count() doesn't work on overloaded objects From: george@omniti.com (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? > > 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