Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47379 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95824 invoked from network); 17 Mar 2010 19:26:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Mar 2010 19:26:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=brian@moonspot.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=brian@moonspot.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain moonspot.net designates 72.5.90.27 as permitted sender) X-PHP-List-Original-Sender: brian@moonspot.net X-Host-Fingerprint: 72.5.90.27 smtp.dealnews.com Linux 2.5 (sometimes 2.4) (4) Received: from [72.5.90.27] ([72.5.90.27:35312] helo=smtp.dealnews.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1E/34-07776-1DC21AB4 for ; Wed, 17 Mar 2010 14:26:10 -0500 Received: (qmail 12104 invoked from network); 17 Mar 2010 19:14:14 -0000 Received: from unknown (HELO mail.dealnews.com) (10.1.10.7) by -H with ESMTPS (DHE-RSA-AES256-SHA encrypted); 17 Mar 2010 19:14:14 -0000 Received: (qmail 27936 invoked from network); 17 Mar 2010 19:14:21 -0000 Received: from 184.2.1.10.in-addr.arpa (brianm@10.1.2.184) by -H with ESMTPA; 17 Mar 2010 19:14:21 -0000 Message-ID: <4BA12A0D.3070307@moonspot.net> Date: Wed, 17 Mar 2010 14:14:21 -0500 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: Felix De Vliegher CC: Derick Rethans , Frederic Hardy , PHP internals References: <6E76B52E-7543-4F09-A948-A7910513B548@gmail.com> <4BA102F2.1000405@mageekbox.net> <62279C8B-4E50-47DE-B682-EE8152084433@gmail.com> <23E13BAA-52BB-4BED-BC6B-03FA9400AFFE@gmail.com> In-Reply-To: <23E13BAA-52BB-4BED-BC6B-03FA9400AFFE@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] array_seek function From: brian@moonspot.net (Brian Moon) >>> Update: http://phpbenelux.eu/array_seek-return.patch.txt >>> I've kept the fseek()-style return values (0 when fine, -1 when seek fails) >> >> Any reason why you picked that over the (IMO more logical) true/false >> approach? > > No, just to keep it similar to fseek(). Either way works for me. I would expect it to return the same as current, next, prev rather than a file io function. Brian.