Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61149 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96536 invoked from network); 12 Jul 2012 00:51:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jul 2012 00:51:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.213.46 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.213.46 mail-yw0-f46.google.com Received: from [209.85.213.46] ([209.85.213.46:50458] helo=mail-yw0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/93-09688-E8F1EFF4 for ; Wed, 11 Jul 2012 20:51:27 -0400 Received: by yhmm54 with SMTP id m54so2183578yhm.19 for ; Wed, 11 Jul 2012 17:51:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=st4/2d8ePIRRLXiG7tdB3cvhnxNghA7fzyEOJ/SO7Ew=; b=TtXCPawi2UswwESx9bxQY+eTgpdZ9xfubWYfY9RJB2x5NbtMBhio6o95p4NJ4YbH3p zhm3JvHQ5jHva79Qg75JpZQgjWak4azPvoeAjKrHKbLl5j5aOgE5sDAJ8UgJ8b5Y1Tt8 kIvlfjVj97sUuvie/RZtwF3kcb0oRtKhAdF3NnQaNGXMWpxV/+Rhf1/IDdVIrwSe0zbv 7RuOE4Jb4MP1GoM8zCMDjYYTcymuzsd36ju3jHsQBs/LvWBGO4EmYbtO5GMgCYvIbu3I HbQKCv9YXJIpc/BQUwOtw47JwbNP6tAS8BTYtCGmgHcyQ2EdFxMsmE+lSTu0vTvzfj8K JiaA== MIME-Version: 1.0 Received: by 10.50.94.228 with SMTP id df4mr15944628igb.34.1342054283585; Wed, 11 Jul 2012 17:51:23 -0700 (PDT) Sender: php@golemon.com Received: by 10.64.24.242 with HTTP; Wed, 11 Jul 2012 17:51:23 -0700 (PDT) X-Originating-IP: [173.252.71.3] In-Reply-To: References: <1342050547.1456.33.camel@guybrush> Date: Wed, 11 Jul 2012 17:51:23 -0700 X-Google-Sender-Auth: 0wGPBniVbqTkHI5LGKlmJlGFRFI Message-ID: To: Anthony Ferrara Cc: =?ISO-8859-1?Q?Johannes_Schl=FCter?= , Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary=e89a8f235453d7a80104c4975c55 X-Gm-Message-State: ALoCoQkwCTHdCfqmhbjDW5/vqP9AuxGObIU7z/PnWyxPaaHzWzBh3N0HlA5VD4hLOO+A59mZ8RPS Subject: Re: [PHP-DEV] Internal iteration API From: pollita@php.net (Sara Golemon) --e89a8f235453d7a80104c4975c55 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Jul 11, 2012 at 5:39 PM, Anthony Ferrara wrote: > Johannes, > > One thing to keep in mind when doing this is to think about consistency. > > > > I think that's a huge point not to be taken lightly. For that reason, I > think that this API should not be used for any of the array_* functions. > Meaning that array_sum(), etc should all take arrays only. > > Then, other non-array functions (such as str_replace, etc) can be modified > to use this new method. > > Just my $0.02 anyway... > > Sounds like everyone agrees the API is useful, just question marks over which existing methods should profit by it. 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. -Sara --e89a8f235453d7a80104c4975c55--