Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94542 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26376 invoked from network); 18 Jul 2016 00:20:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jul 2016 00:20:49 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.170 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.192.170 mail-pf0-f170.google.com Received: from [209.85.192.170] ([209.85.192.170:34199] helo=mail-pf0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E7/6D-31884-FD02C875 for ; Sun, 17 Jul 2016 20:20:48 -0400 Received: by mail-pf0-f170.google.com with SMTP id p64so24030557pfb.1 for ; Sun, 17 Jul 2016 17:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=n+z9v97KmsjvVHaZ6mu5/kp4SrvGsskz4BHJ1Ica71k=; b=YYyc1JGfRqMPUEKbLajVsLox6Z4GT1RMcmpkch3lOfmmmoOgA6Q1bqyV6qqnNOCIBf xnfjKv2mCQ3fSwRKCmUeEgH3ZwlpVqUHa8ImFdpo+oEi+RNlSnlnE6MLBB56yLYMA8yv B1sMJrxJpOBgPijnKaf6rcXA2VBf45VV4eBJNX2XreXwayGHBrTb+qanK1HCcx0Xi3Xn 4aGnEw+fhTFJ/gJGhcVWpRQXJSmR7VNEhEyPrBfAeM6Fpp2s8nTBm7TH3tUZZyJLbzjN Z/B5gX+FddS+dqja9mKafhm+YJdeqGZXzqlFspllegvWcOBjCwDedW9x9tbW1n1r4o/L CnPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=n+z9v97KmsjvVHaZ6mu5/kp4SrvGsskz4BHJ1Ica71k=; b=YKMuL7hnSFPCyEpoXoFRmVNjkVsExKQMXvdlxpT1K7VEoQVrLHagvQiHcRAzjnhTQd 1ANmLcrYZH+aLKcsU4sepWlCmHrZni+t8Xx8ZtwC8lUB/L+mCr6jsSJiqU3lHZEa45M3 HSfRqH4p418RS709pFbcIdp6b6S46ym4u6kYhnXou5JEMu0XTY62zBpuqhos0zY/5uLK HAiJ+yqMhcVWRPH1gATQWUdDsosoLPuq5eAHThAX+CXqjeajG0RdmhgEKw5d/FanNLzq Sl9QTnnwMZPu9lZ2w+yqrQkvzZKOBQOfhqq4ZRThSg+KCe96BYJv5DGzXlhnzqWx0bzU Zlug== X-Gm-Message-State: ALyK8tKaLMoD8ZrbKTj+Lt/l6PoZI1la3nbe4o8e3+fdHX9Ba3Ph5VCdVpK8avrF/FCAxVlymvRFzG7q7DIDhw== X-Received: by 10.98.29.201 with SMTP id d192mr35751266pfd.142.1468801244020; Sun, 17 Jul 2016 17:20:44 -0700 (PDT) MIME-Version: 1.0 Sender: morrison.levi@gmail.com Received: by 10.66.24.42 with HTTP; Sun, 17 Jul 2016 17:20:43 -0700 (PDT) In-Reply-To: References: Date: Sun, 17 Jul 2016 18:20:43 -0600 X-Google-Sender-Auth: uTiSKMCoBzSj-enFG6OA_AU-E94 Message-ID: To: Nikita Popov Cc: Rowan Collins , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Idea: Function autoloading using dummy namespaces From: levim@php.net (Levi Morrison) >> I think a better option is to try to solve this in 8 by unifying how >> functions and classes (and interfaces and traits) work in namespaces. >> Ideally the lookup behavior should be the same and all that differs >> are the symbol tables being looked in. > > > Are you suggesting that we require global function references to be written > as fully qualified names? This would be a huge BC break for namespaced code. Not necessarily, but yes that is an option. Class like types could also fall back to global namespace. Even though this change probably would not break any code I am aware of (since it fails at runtime and seems unlikely to be relied on) I'd still rather make that in a major version.