Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97572 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13139 invoked from network); 8 Jan 2017 01:42:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jan 2017 01:42:42 -0000 Authentication-Results: pb1.pair.com header.from=php-lists@koalephant.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php-lists@koalephant.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain koalephant.com designates 206.123.115.54 as permitted sender) X-PHP-List-Original-Sender: php-lists@koalephant.com X-Host-Fingerprint: 206.123.115.54 mail1.25mail.st Received: from [206.123.115.54] ([206.123.115.54:48556] helo=mail1.25mail.st) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6B/12-31343-F0991785 for ; Sat, 07 Jan 2017 20:42:41 -0500 Received: from [10.108.144.22] (ppp-223-24-18-207.revip6.asianet.co.th [223.24.18.207]) by mail1.25mail.st (Postfix) with ESMTPSA id ACE6260312; Sun, 8 Jan 2017 01:42:29 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) X-Mailer: iPhone Mail (13G36) In-Reply-To: Date: Sun, 8 Jan 2017 08:42:24 +0700 Cc: Rowan Collins , PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <8e8f1cf4-a698-63b0-71a6-84daff20fdf2@gmail.com> <6925329b-3513-544a-2d40-6fcf402ebfff@gmail.com> <4dc52203-379d-7e19-d420-692d006b177e@gmail.com> To: Joe Watkins Subject: Re: [PHP-DEV] SimpleXML's atXPath method From: php-lists@koalephant.com (Stephen Reay) Hey all, Is there a major issue with simply adding a $limit parameter to the existing= xpath() method instead, and stopping searching after that many elements are= found? Cheers Stephen=20 Sent from my iPhone > On 8 Jan 2017, at 06:19, Joe Watkins wrote: >=20 > Evening Rowan, >=20 > Thank you. >=20 > Now we can get to the really hard problem ... naming things :D >=20 > I'm afraid I have no good suggestions. I can find API's that use the > suggested name, but they vary in functionality (some overlap). >=20 > There's also XmlNode.SelectSingleNode from C#, but sounds pretty horrible > to me, variations on it might be: >=20 > selectPath > singlePath > singleNode >=20 > None of them really sound right to me, but may provoke someone else to do > better. >=20 > Over to you, someone else ... >=20 > Cheers > Joe >=20 > On Sat, Jan 7, 2017 at 11:02 PM, Rowan Collins > wrote: >=20 >>> On 07/01/2017 19:29, Joe Watkins wrote: >>>=20 >>> Evening Roawn, >>>=20 >>> There is no competition to see which single problem we are going to >>> solve, we can fix more than one thing, obviously :) >>>=20 >>> What we are discussing here is the value of this particular feature, not= >>> the value of things that nobody has taken the time to propose, implement= , >>> or fix. >>>=20 >>> This contributor has waited a year for this conversation to start, it >>> would be nice if we could stay focused. >> Indeed, I didn't mean to imply otherwise, and sorry if I gave that >> impression. There is a small cost to adding new methods like this, in >> future maintenance, and the future consistency of the extension, but you'= re >> right that it's not a big deal, and other than finding the right name, I'= ve >> no real reason to object to this method. >>=20 >>=20 >> Regards, >>=20 >> -- >> Rowan Collins >> [IMSoP] >>=20 >>=20 >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >>=20 >>=20