Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90403 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42721 invoked from network); 9 Jan 2016 02:21:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jan 2016 02:21:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=bishop.bettini@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bishop.bettini@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.41 as permitted sender) X-PHP-List-Original-Sender: bishop.bettini@gmail.com X-Host-Fingerprint: 74.125.82.41 mail-wm0-f41.google.com Received: from [74.125.82.41] ([74.125.82.41:34050] helo=mail-wm0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/3F-55593-8BE60965 for ; Fri, 08 Jan 2016 21:21:44 -0500 Received: by mail-wm0-f41.google.com with SMTP id u188so156865377wmu.1 for ; Fri, 08 Jan 2016 18:21:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=mmnGmAC2gGsNkSAcQJ7VaSkgAYj21yZPg5fHxfYB8yE=; b=q3iMOfCmtOIVaMxAU57QzFgb92zpECY4OCP/FgR1z0QcctaR8e8S1KaEMCypMLq5AT DFkRFEGcpmUKd9VettRMzPeTRWm5Lv+1y85uSmKzLaxQDeLUjd0WCMV/p73wQBCWF53R 103HZpdN5sT2W4fC+856x5D2tcnkY6NQIlF1hKt9xQmi7YW256da/VGn3Bo/GQSf/8X6 GOvxMgU5Jnq6vm78LLwKBiHmlDu/Cf6eCQTp3kcr1yQzzKzRiQPmJg8KKRsatQZDtyDM d3ZjoMzpCioUilqiMqpIBP9Yb+StwnZm9sSZ863ca9bTqo5r00maqhVhI0rclvFNh3rK 9CHA== X-Received: by 10.28.133.8 with SMTP id h8mr1882840wmd.71.1452306101399; Fri, 08 Jan 2016 18:21:41 -0800 (PST) MIME-Version: 1.0 Reply-To: bishop@php.net Sender: bishop.bettini@gmail.com Received: by 10.194.45.230 with HTTP; Fri, 8 Jan 2016 18:21:12 -0800 (PST) In-Reply-To: References: <5687FEC0.8010103@gmail.com> Date: Fri, 8 Jan 2016 21:21:12 -0500 X-Google-Sender-Auth: _-Vrx7IhvKKgnxgc4eUN7ytUDw8 Message-ID: To: Nikita Popov Cc: Rowan Collins , Stas Malyshev , PHP internals Content-Type: multipart/alternative; boundary=001a11432ede4778350528dd5d68 Subject: Re: [PHP-DEV] [RFC] On-Demand Name Mangling From: bishop@php.net (Bishop Bettini) --001a11432ede4778350528dd5d68 Content-Type: text/plain; charset=UTF-8 On Fri, Jan 8, 2016 at 9:39 AM, Nikita Popov wrote: I still don't like this part: > > > > As written, one can't: the engine emits the error as soon as it mangles > a variable, at most one time per startup. While that's annoying, it's also > informative: someone's hitting your application in a way that may not > expect. > > Even if it's only a single deprecation warning instead of multiple, it's > still a deprecation warning that I, as the application author, have > absolutely no control over. For me, a deprecation warning indicates that > there is some code I must change to make that warning *go away*. > > Sure, it's informative. But it's enough to be informative about this > *once*, rather than every time a user makes an odd-ish request. > > If we don't want to introduce an ini setting (against which there are good > reasons, as you have outlined) I'd just mark this as deprecated with a nice > red box in the documentation and upgrading guide, and commit to dropping it > in 8.0, but not throw actual deprecation notices. > Agreed. Updated RFC. In summary: - The docs for 7.1 will say mangling is deprecated in 8.0 and that a polyfill to avoid a BC break will be available for download - The 8.0 code will completely remove all superglobal name mangling I feel we're pretty close on this, but of course comments appreciated: https://wiki.php.net/rfc/on_demand_name_mangling --001a11432ede4778350528dd5d68--