Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89957 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86229 invoked from network); 1 Jan 2016 21:47:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jan 2016 21:47:45 -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.45 as permitted sender) X-PHP-List-Original-Sender: bishop.bettini@gmail.com X-Host-Fingerprint: 74.125.82.45 mail-wm0-f45.google.com Received: from [74.125.82.45] ([74.125.82.45:37763] helo=mail-wm0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/62-06661-DF3F6865 for ; Fri, 01 Jan 2016 16:47:42 -0500 Received: by mail-wm0-f45.google.com with SMTP id f206so144828539wmf.0 for ; Fri, 01 Jan 2016 13:47:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:from:date:message-id:subject:to :content-type; bh=4CY+BVF3tKO29eGf3qLYoKt1GF4wQqJ7mtcrNihr/Ao=; b=IXnqdBdJIeaalMOOx6MoMJ50xzcyeBYD4jpx/mmjWBdS6oHHc5AOGHDyE9gVWGh++S 0IFAKiIdeVrpEWvVUa11LzsDVO2qHCIfDzBf1m7TnnE/caLGMO6c3qMujvJ0qv2LQbhs GrEakImNErEkkxpS882ZkEvh/tTR2V7SZhYcLOc9SG7AeMkE+h06LjwZmLsGNnOttCX4 gs15FSYOxbbY0TcDLCMhpzz2ajdNfNNB/7XR+u1ltYJcYZ8/xOY5jDKV7UhyyHpjxCZV inj10VrMMXR5Oxr9ZgZVJA37wDUYK47cPU94828UUw44rmieOZvCgP1VU6+cTSoJCr2H /gRQ== X-Received: by 10.28.133.8 with SMTP id h8mr86450545wmd.71.1451684858568; Fri, 01 Jan 2016 13:47:38 -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, 1 Jan 2016 13:47:09 -0800 (PST) Date: Fri, 1 Jan 2016 16:47:09 -0500 X-Google-Sender-Auth: qrVMLSVaoF50M0W-PaNRZ0EbLQ4 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=001a11432ede52252705284cb8f8 Subject: [RFC] On-Demand Name Mangling From: bishop@php.net (Bishop Bettini) --001a11432ede52252705284cb8f8 Content-Type: text/plain; charset=UTF-8 Hello Internals, Ringing in the new year with a proposal to retool name mangling: Mangling has the undesirable consequence that many external variables may map to one PHP variable. This leads to user confusion and user-land workarounds, not to mention bug reports. Since register_globals has been removed, we can replace automatic name mangling with on-demand mangling via extract(). This allows a one-to-one between external and PHP super-global variables, while fixing a few bug reports on extract as well. RFC: https://wiki.php.net/rfc/on_demand_name_mangling Thanks in advance for your feedback! bishop --001a11432ede52252705284cb8f8--