Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49828 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20514 invoked from network); 30 Sep 2010 20:13:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Sep 2010 20:13:52 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.123 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.123 smtp123.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.123] ([67.192.241.123:41078] helo=smtp123.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 56/50-18648-08FE4AC4 for ; Thu, 30 Sep 2010 16:13:52 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp12.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 0438B3C01B8; Thu, 30 Sep 2010 16:13:50 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp12.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id A35593C012C; Thu, 30 Sep 2010 16:13:49 -0400 (EDT) Message-ID: <4CA4EF7D.9070205@sugarcrm.com> Date: Thu, 30 Sep 2010 13:13:49 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Adam Harvey CC: PHP internals References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Expose compare_function() to userspace From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > If I don't hear kicking and screaming in the next few days, I'll slip > this into trunk. I can provide a patch/RFC in advance if there's > demand, but it'll be about as simple as you imagine. :) Sounds good. > The one thing that I would like bikeshedding^Wfeedback on is the name: > cmp() makes the most sense to me, since it lines up well with Python > and (to a lesser extent) Perl, but if there are concerns about > potential name clashes with existing code, may I suggest > var_compare(). Get your votes and/or suggestions in! I'd like var_compare(). Quick search in google reveals cmp() being used in actual code, and compare() to some extent too, though mostly as method, so not really clashing. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227