Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47317 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57182 invoked from network); 16 Mar 2010 16:16:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2010 16:16:05 -0000 Authentication-Results: pb1.pair.com header.from=felix.devliegher@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=felix.devliegher@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: felix.devliegher@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-wy0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:43011] helo=mail-wy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 34/27-15129-4CEAF9B4 for ; Tue, 16 Mar 2010 11:16:04 -0500 Received: by wyb36 with SMTP id 36so51203wyb.29 for ; Tue, 16 Mar 2010 09:15:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:message-id:references:to :x-mailer; bh=WcaVfpsYJTGD8YlZcV0KSzmL8wnjyJb3QOjEfd4vh2s=; b=uv+gmMc/Fa9oN2hlp2yTNiC7p3iZT572kqPq02EAJHEJsBVRYWzkAO4vIsxseqYRtX GRe31YsskQ5Ps/2oQgln7lHW+UJSSfCNd/y397xMWFsCDWzhDfFToEiRyxczw9a7Zc5m urDEI8c14v3o2pVO2XasJ51u+cGuBEU1uM7GM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to:x-mailer; b=eZTVst9NsVqKCkP7et54jW08juwap1nSW4oS5hrTX/IaY/M1ekMBjwADgMKEt81nIF y5HMX90MToU59uyI5/vqd3vp+wZ1cHaR9maRI3FtQVU21d6UK+wcPGYMjr1UR2++usHF oDILYLf2zdgcH9y8xUvrCxdpXYDsXXCnzEA6Q= Received: by 10.216.93.73 with SMTP id k51mr1156757wef.187.1268756158500; Tue, 16 Mar 2010 09:15:58 -0700 (PDT) Received: from [10.0.1.102] (cable-175-208.zeelandnet.nl [82.176.175.208]) by mx.google.com with ESMTPS id q9sm16482723gve.24.2010.03.16.09.15.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 16 Mar 2010 09:15:57 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: multipart/alternative; boundary=Apple-Mail-29-538662789 In-Reply-To: Date: Tue, 16 Mar 2010 17:15:55 +0100 Cc: Pierre Joye , PHP internals Message-ID: <5F51BD77-EE03-46BB-A73F-802B4A8A2034@gmail.com> References: <6E76B52E-7543-4F09-A948-A7910513B548@gmail.com> <1E2D6F10-F23D-4F08-BFFD-13D5E6CF6D51@gmail.com> To: Derick Rethans X-Mailer: Apple Mail (2.1077) Subject: Re: [PHP-DEV] array_seek function From: felix.devliegher@gmail.com (Felix De Vliegher) --Apple-Mail-29-538662789 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 16-mrt-2010, at 17:07, Derick Rethans wrote: > On Tue, 16 Mar 2010, Felix De Vliegher wrote: >=20 >> Right now, it returns the value of a given position. In that case,=20 >> array_get_pos might be a better name. Oh, and I attached the patch=20 >> with .txt extension :) >=20 > Does it also seek the array pointer? Because I think array_seek that=20= > moves the pointer, in combination with current() and key() might make=20= > slightly more sense? >=20 Mikko updated the patch a bit to set the array pointer correctly (and = make it perform a bit better when dealing with large arrays), my version = left it one position too far. So yes, that's possible. The updated = version can be found here: = http://valokuva.org/~mikko/array_seek.patch.txt Cheers, Felix= --Apple-Mail-29-538662789--