Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74508 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69325 invoked from network); 27 May 2014 02:00:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2014 02:00:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.107 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.107 smtp107.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.107] ([108.166.43.107:57807] helo=smtp107.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9A/60-00171-4B1F3835 for ; Mon, 26 May 2014 22:00:20 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp14.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 28654380752; Mon, 26 May 2014 22:00:17 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp14.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 4ABC3380742; Mon, 26 May 2014 22:00:16 -0400 (EDT) Message-ID: <5383F1AE.1090406@sugarcrm.com> Date: Mon, 26 May 2014 19:00:14 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Bob Weinand , Andrea Faulds CC: Dmitry Stogov , Zeev Suraski , Xinchen Hui , PHP Internals , Andi Gutmans , Nikita Popov References: <-6285448086228171932@unknownmsgid> <67d97efff27b61e45ef74d4f4339b4b3@mail.gmail.com> <962B3020-200F-45D2-8FEC-AD7A0BFDA50E@ajf.me> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RE: [RFC] Fast Parameter Parsing API From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > No. You might want to return false (it's maybe not a good idea to do so, but it would break BC to remove that possibility) I think we need to use this opportunity to clean up our APIs. I.e. if the functions return NULL when passed wrong parameters (which makes sense), then *all* functions should do that, not just 99%, and random 1% would return something else. Yes, this means some (very minor) BC issues. We're doing a major version, and I think this is acceptable price to pay for consistent API. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227