Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97989 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77902 invoked from network); 27 Jan 2017 15:30:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jan 2017 15:30:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=netmo.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=netmo.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.182 as permitted sender) X-PHP-List-Original-Sender: netmo.php@gmail.com X-Host-Fingerprint: 209.85.213.182 mail-yb0-f182.google.com Received: from [209.85.213.182] ([209.85.213.182:33911] helo=mail-yb0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AC/A8-28703-6776B885 for ; Fri, 27 Jan 2017 10:29:59 -0500 Received: by mail-yb0-f182.google.com with SMTP id j82so68411174ybg.1 for ; Fri, 27 Jan 2017 07:29:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=1OOyi7Z1T8cx8cRi1vd9OtOmzVvSQuO06zIITLKkd3I=; b=cw7f+baSyaUY91FmzwH/3t3Z8ZM9X/7V6dHxvtvtngpG3oDdp5W8cnQRwfWFKsZ+Vs 8ENbVQeOjx9B/eYe8/JrHtlJSnRZmyI1KH+ZbvBiT7lY7H2WduDFYO/Yu6rXK8331t+4 alRrqHATPj7LcxlyIvUaT6B5CblQE62PqZFYAfzSGErpgGLw/7kskCE7aUp6l8oW/1KH tbzxWdrevbnpyPiBPNdBE4xgRgbOWheTg4pQqQUbeRLMgQp90q+nFFeCpKlK29V8Ie8L /LmSBhizlCyvJmdo3SFP+oA1zSKNmW8v790W8nPt6rOqTVRjj0l3N40BPevhgHJGpM3F Ugng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=1OOyi7Z1T8cx8cRi1vd9OtOmzVvSQuO06zIITLKkd3I=; b=TX8CHff87rRC9nUOBajAEd2Qz//MfOU1iKb8vq5tHhyJv6DKz6GVzdTiQEHbUQiV9B c6t22agcH41UWFKl/q2xouXTbSsjY3heW6XJ/eTV26RDUQQ7SsiGy23EEZM7SV79E+Gg ph7eEuElALVNRICloV4VyKi0ZCk2vIdyiz8kG24EeGKSMV92Jf5FSI5PqSyIT0VGu2VD 1/OJ78SoqoxqVX3U1WZhPXxyyzMmNuDw3wXO+xhQwB037sIhN1GUm3PiYcZyiy4WunPT A0WeiruAYPnZZayP9LII0xd1ucMfmCcBefenxUYgK59wRo0OO4JLRdmHV+ay2OWcvkNi 2bVA== X-Gm-Message-State: AIkVDXL0BqdLzbRfExyPlrLCpkIpRGnGy40rvVWmrcVdMaXXVDoephJKX0SFJ01S+xH/GOJvs48SKSHt6MGVgA== X-Received: by 10.37.217.77 with SMTP id q74mr1890670ybg.23.1485530996334; Fri, 27 Jan 2017 07:29:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.128.71 with HTTP; Fri, 27 Jan 2017 07:29:55 -0800 (PST) In-Reply-To: <9113D065-B94A-4CA2-9420-56963C703ECA@gmail.com> References: <9113D065-B94A-4CA2-9420-56963C703ECA@gmail.com> Date: Fri, 27 Jan 2017 16:29:55 +0100 Message-ID: To: Rowan Collins Cc: PHP Internals Content-Type: multipart/alternative; boundary=94eb2c068a96571977054715239d Subject: Re: [PHP-DEV] Not autoloading functions From: netmo.php@gmail.com (Wes) --94eb2c068a96571977054715239d Content-Type: text/plain; charset=UTF-8 Importing functions from a static class would equally require to have all functions in the same file. I was proposing an alternative to that, not "symbol to file" autoloading. Though, I know that problem well, sadly. I've suggested PHP should just deprecate the fallback to root namespace, and remove the feature altogether in PHP8. Imho it's the only way to actually solve this. Some say it would be a huge BC break, but in reality old applications could maintain compatibility only by adding a simple autoloader that would alias the global function/constant into the calling namespace. Roave wrote this https://github.com/Roave/FunctionFQNReplacer , PHPStorm is supporting the no-fallback referencing: https://youtrack.jetbrains.com/issue/WI-27425 (recently implemented) https://youtrack.jetbrains.com/issue/WI-34446 (recently implemented) https://youtrack.jetbrains.com/issue/WI-34858 So... it could be the right time to deprecate the fallback to root namespace, before PHP8 gets too close. --94eb2c068a96571977054715239d--