Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65199 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48154 invoked from network); 26 Jan 2013 03:02:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2013 03:02:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=cpriest@zerocue.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cpriest@zerocue.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zerocue.com designates 67.200.53.250 as permitted sender) X-PHP-List-Original-Sender: cpriest@zerocue.com X-Host-Fingerprint: 67.200.53.250 mail.zerocue.com Received: from [67.200.53.250] ([67.200.53.250:53545] helo=mail.zerocue.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/72-17242-D2743015 for ; Fri, 25 Jan 2013 22:02:05 -0500 Received: from [172.17.0.122] (unknown [70.112.216.188]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.zerocue.com (Postfix) with ESMTPSA id 96D3912034E; Sat, 26 Jan 2013 03:02:02 +0000 (UTC) Message-ID: <5103471D.2010709@zerocue.com> Date: Fri, 25 Jan 2013 21:01:49 -0600 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Stas Malyshev CC: "internals@lists.php.net" References: <5102D1DB.9060305@sugarcrm.com> <51032B3C.7040608@sugarcrm.com> <51033962.1030805@zerocue.com> <510342CD.6020405@sugarcrm.com> In-Reply-To: <510342CD.6020405@sugarcrm.com> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] I think that "Function naming inconsistency" bug deservers more attention From: cpriest@zerocue.com (Clint Priest) On 1/25/2013 8:43 PM, Stas Malyshev wrote: > Hi! > >> Realistically couldn't we just introduce a configuration parameter to >> keep "the inconsistent parameter order," perhaps along with a script to >> suggest the changes needed to bring some code up to speed? > People think that "introduce a configuration parameter" is a solution to > almost any BC problem in the engine. It's not true, actually it's the > opposite - now you have to maintain two code bases, one for one value of > the parameter and one for another. Now imagine there's 10 such > parameters, for different things in PHP, and you get 1024 options to > test you application on. That's why we try to reduce behavior-modifying > options to a minimum. Config options are for configuration, not for > changing engine behavior in BC-breaking way. That's one of the reasons > why magic_* were not a good idea and we had to get rid of them. > > And imagine integrating a library that is written with one set of engine > options into application that expects another set of options. Now > imagine application that uses a dozen of third-party libraries (in > current open-source world, it's not too many at all), each of them > expecting its own set of engine-modifying options. It would very quickly > become a complete nightmare. > > So I think we should try to keep PHP behavior unified and avoid > behavior-modifying switches as much as possible. I agree all of that would suck, but would it suck less than the alternatives for the most people involved? -- -Clint