Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65203 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69158 invoked from network); 26 Jan 2013 07:05:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2013 07:05:31 -0000 Authentication-Results: pb1.pair.com header.from=thbley@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=thbley@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.51 as permitted sender) X-PHP-List-Original-Sender: thbley@gmail.com X-Host-Fingerprint: 209.85.220.51 mail-pa0-f51.google.com Received: from [209.85.220.51] ([209.85.220.51:52107] helo=mail-pa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/24-17242-A3083015 for ; Sat, 26 Jan 2013 02:05:30 -0500 Received: by mail-pa0-f51.google.com with SMTP id fb11so661715pad.24 for ; Fri, 25 Jan 2013 23:05:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=2rQrMPVQ3FUBU1buwaUefpGsRmeNQjvokSHecYe/cZQ=; b=RpuVBELRxcg6JUsSAbDCVq54r2bvzY/yZqpRkSVRozmXRp9XwrS3gjLwuSGmPjKqV9 PJV4qabQrk9pqz4nIYAOAmE0L816MLVuGiYU1xnctGCb3EqC67PwHFr2w/x5i8k4Nng7 EwqZC+XigYdb6Zu9TogoAvVFsS4J2eWzjQxmkiYJGjJpk8AcCsVLGxp9ipaLegx4SmkW Ul6fZGilrIrI+yG7jeKEaiE5a6YHOM3ekAyArhCo4q1rhPqu/fS5oMJBJpflof1IrCY5 tNb2VKCZWHErX5cwdWPW2ASs4Iz0Sp13IvWzvpdNE6mb41eelgZtsU/frzWQsI8sSVLz bBoA== MIME-Version: 1.0 X-Received: by 10.69.1.73 with SMTP id be9mr20601662pbd.116.1359183927506; Fri, 25 Jan 2013 23:05:27 -0800 (PST) Sender: thbley@gmail.com Received: by 10.68.233.40 with HTTP; Fri, 25 Jan 2013 23:05:27 -0800 (PST) In-Reply-To: <510342CD.6020405@sugarcrm.com> References: <5102D1DB.9060305@sugarcrm.com> <51032B3C.7040608@sugarcrm.com> <51033962.1030805@zerocue.com> <510342CD.6020405@sugarcrm.com> Date: Sat, 26 Jan 2013 08:05:27 +0100 X-Google-Sender-Auth: VpXck8A5rDGUil4tXDcfOibW1Y4 Message-ID: To: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] I think that "Function naming inconsistency" bug deservers more attention From: thbley+php@gmail.com (Thomas Bley) 1) What about using a new open tag? pos("lo")) {... echo $s->htmlSpecialChars(); echo $s->convert("ISO-8859-1"); $a = new Array([1,2,3]); if ($a->contains(1)) {... Regards, Thomas On Sat, Jan 26, 2013 at 3:43 AM, 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. > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >