Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78147 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73408 invoked from network); 17 Oct 2014 15:35:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2014 15:35:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.50 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.192.50 mail-qg0-f50.google.com Received: from [209.85.192.50] ([209.85.192.50:55058] helo=mail-qg0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 71/5F-30834-42731445 for ; Fri, 17 Oct 2014 11:35:00 -0400 Received: by mail-qg0-f50.google.com with SMTP id q108so691125qgd.23 for ; Fri, 17 Oct 2014 08:34:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5TEfCHhBkZPji445hbgSYKba/+Ikv3J8TRn1s5wnzEg=; b=p/93xenzieI4BlCuz9Qr0luUJunG/CkJndzHnQVpONasjrnpGOP0PQlrwlBSPAZbIU O3SHQH0O3wcTWE4tmu3ojOWMYhdlLFOJeiukMs/zd7JHFxxd9lXUYb12id/FVSRm0fWx qt0Dh+HuOM/z7aYSrTQmcf8rZf5FBUp0dQMr3hQQoHrjZ9/M6AWQZ3736KjSSPgll/B2 Y9h9sSuCC9yrO1RX7SAfvwTMPh71MF47X0xV3Efhqz7dY7cSq6evWrznzeN2FZJBdzUK LF3J5lObyhNkdcsPDvPlO51hcU8X7sBqIzcQh4Nl+M/Un5fIdZLT1xyavkWdEMg9rlu2 I7KA== MIME-Version: 1.0 X-Received: by 10.224.64.71 with SMTP id d7mr13011821qai.16.1413560097770; Fri, 17 Oct 2014 08:34:57 -0700 (PDT) Received: by 10.140.107.130 with HTTP; Fri, 17 Oct 2014 08:34:57 -0700 (PDT) In-Reply-To: References: Date: Fri, 17 Oct 2014 17:34:57 +0200 Message-ID: To: Andrey Andreev Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a11c21caa7f133a0505a01baa Subject: Re: [PHP-DEV] question regarding #67309 From: tyra3l@gmail.com (Ferenc Kovacs) --001a11c21caa7f133a0505a01baa Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Jun 3, 2014 at 2:46 PM, Andrey Andreev wrote: > Hi, > > On Tue, Jun 3, 2014 at 3:30 PM, Ferenc Kovacs wrote: > > > > > > > > On Tue, Jun 3, 2014 at 1:01 PM, Andrey Andreev wrote= : > >> > >> On Tue, Jun 3, 2014 at 10:41 AM, Ferenc Kovacs > wrote: > >> > Hi, > >> > > >> > I wanted to ask what's our current consensus about feature requests > like > >> > this: https://bugs.php.net/bug.php?id=3D67309 > >> > The requested function wouldn't provide anything which isn't current= ly > >> > available via ini_get(), but it would be a bit natural to expect a g= et > >> > method where a set exists. > >> > > >> > -- > >> > Ferenc Kov=C3=A1cs > >> > @Tyr43l - http://tyrael.hu > >> > >> Hi, > >> > >> We talked about this with Yasuo in regards to some ext/session stuff > >> (although it was about setters) and agreed on keeping ini_set() only. > >> He even wrote a quick RFC about it: > >> https://wiki.php.net/rfc/deprecate-ini-functions > >> > > > > Yeah, but AFAIR we didn't come up with an agreement (other than reverti= ng > > out a couple of new functions from PHP 5.6.0). > > We didn't indeed, I was just giving you partial feedback. :) > > >> My opinion in general is that we don't need functions that duplicate > >> ini_set(), ini_get() for a particular setting and existing ones should > >> be removed in the future instead of adding more to complement them. No > >> idea what other people think about it though. > > > > > > I agree that providing multiple ways to achive the same thing is not > really > > useful. > > But we also have to decide whether or not it is worth the BC to remove > some > > existing function only because one can already do the same thing via > > ini_set. > > With work supposedly being started on PHP6, now is the right time to > make that decision. :) > > > Another (albeit maybe a bit far-fetched) aspect is that somebody could > > assume that he/she can restrict a setting via disabling the appropriate > > function(via disable_functions) while that can be bypassed through the > > ini_set or vica versa. > > So the more ways we provide for the same setting to be set it is more > likely > > that somebody forgets protecting one of those. > > Exactly. > > Cheers, > Andrey. > resurrecting this thread in the hope of getting a bit more feedback. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --001a11c21caa7f133a0505a01baa--