Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61152 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10886 invoked from network); 12 Jul 2012 04:54:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jul 2012 04:54:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.153 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.153 smtp153.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.153] ([67.192.241.153:35696] helo=smtp153.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/71-32936-A885EFF4 for ; Thu, 12 Jul 2012 00:54:35 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp5.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id E502A58D5D; Thu, 12 Jul 2012 00:54:31 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp5.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 5B8AF58D8D; Thu, 12 Jul 2012 00:54:31 -0400 (EDT) Message-ID: <4FFE5886.7080005@sugarcrm.com> Date: Wed, 11 Jul 2012 21:54:30 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: Sara Golemon CC: Anthony Ferrara , =?ISO-8859-1?Q?Johannes_Schl?= =?ISO-8859-1?Q?=FCter?= , Nikita Popov , PHP internals References: <1342050547.1456.33.camel@guybrush> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Internal iteration API From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > To add my $0.02, it'd be nice to work in a zend_parse_parameters() type for > this. Keep extension code clean and ensures any temporary iterators get > destructed. Definitely, that'd be a great benefit. Just return zend_iterator * which you can use to get current/next zvals and converting functions to work with any Traversable will be a breeze. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227