Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9494 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79984 invoked by uid 1010); 23 Apr 2004 13:25:21 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 79916 invoked from network); 23 Apr 2004 13:25:20 -0000 Received: from unknown (HELO mx.thebrainroom.net) (65.200.24.98) by pb1.pair.com with SMTP; 23 Apr 2004 13:25:20 -0000 Received: by mx.thebrainroom.net (Postfix, from userid 517) id 540FC14880BD; Fri, 23 Apr 2004 06:25:19 -0700 (PDT) Received: from tron (obsidian.thebrainroom.net [82.133.1.142]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx.thebrainroom.net (Postfix) with SMTP id CA7B4148809B for ; Fri, 23 Apr 2004 06:25:12 -0700 (PDT) Message-ID: <002d01c42936$690a44f0$8e018552@tron> To: Date: Fri, 23 Apr 2004 14:24:09 +0100 Organization: The Brain Room Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-TBR-Filter: Virus scanned and defanged Subject: count() doesn't work on overloaded objects From: wez@thebrainroom.com ("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 count(); it shouldn't have a huge impact on the rest of the engine. --Wez.