Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89962 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8625 invoked from network); 2 Jan 2016 03:23:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jan 2016 03:23:24 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.43 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.43 mail-pa0-f43.google.com Received: from [209.85.220.43] ([209.85.220.43:36779] helo=mail-pa0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 45/A5-06661-BA247865 for ; Fri, 01 Jan 2016 22:23:24 -0500 Received: by mail-pa0-f43.google.com with SMTP id yy13so76908772pab.3 for ; Fri, 01 Jan 2016 19:23:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=luA5SjAZQ19ybPAZtco3rdmbkJQm6QQW7zVJKEU4V0E=; b=dX6TgDMINwqaK097wiNH2K+f7D6Wdj3DKtUwArsOn+cFttbveM+DbsJ0trUD4Lkmkh PNNJ9uujCHVJ4E2UH3jZrNMClEOyXodz9cLDF55/4/XJEFONHKE0icWQ5lc3U8NwGbpB vplqBo0C3xvC1/fBRifdFvr6K1JZfb7PsAvYXu9DtTqA8Q12A8pg0w0AtARCTdk1PwUE J/7bo0NVqk6NEOMWI/lzwmGPg9kCzd5fy0nNZ1ORt6ZKda69Z7FHYQBx6rk2U97kp0Iu 3Hvv9ECLDKghEx4bSUPEts+wHcmQQXhCz8ST8FKVI3a1cxaz1h96ODq5UcSwZHan33ZK nRQg== X-Received: by 10.66.140.79 with SMTP id re15mr108514150pab.127.1451705000979; Fri, 01 Jan 2016 19:23:20 -0800 (PST) Received: from Stas-Air.local ([2602:304:cdc2:e5f0:554a:4543:337e:3b74]) by smtp.gmail.com with ESMTPSA id g68sm68324656pfd.55.2016.01.01.19.23.19 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 01 Jan 2016 19:23:20 -0800 (PST) To: bishop@php.net, PHP internals References: X-Enigmail-Draft-Status: N1110 Message-ID: <568742A6.8070400@gmail.com> Date: Fri, 1 Jan 2016 19:23:18 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] On-Demand Name Mangling From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Ringing in the new year with a proposal to retool name mangling: While the variable name changing probably outlived its usefulness with the demise of register_globals, changing it would produce serious BC issues with which we should be very careful. Emitting E_DEPRECATED based on user data certainly does not sound like a good idea. I like Nikita's proposal on both counts - making it an config switch (as much as I hate those) and have extract() flag for this (I would make the current behavior default to minimize BC disruption). I don't see why it says in the RFC it should be PHP_INI_ALL - I think it should be PHP_INI_SYSTEM or PHP_INI_PERDIR, as changing it at runtime won't do anything useful - the values should already be loaded. I would propose default for the INI to be current behavior for now and 0 for next version where we can break BC. BTW, for extract() option we don't need 2/3 majority, it's a simple function fix (which can be merged even in 7.0). -- Stas Malyshev smalyshev@gmail.com