Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124741 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 910531A00B7 for ; Sun, 4 Aug 2024 17:29:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722792668; bh=jBiq+iLb5b/uve+5Sipmuu4SKgCQyo9kEXr6WhlH6LI=; h=Subject:From:To:Date:In-Reply-To:References:From; b=cxJwJVifTStkzJ3U/BNqpggMJizjXU3BAEZjKnVdSq2KoEMZi2QrnFbUJFidJvgE9 pIP3QyZOMnWq+SaFsU2dYn7FwMZb5RPWwtWozI5tKVV38CTIBNT07ueRQUmlggVxQt 84RriiKKn+lAViNdvFQ5dyrRmhq1BN9qdc/mTmretWxPZGAjIU2a4FTIqMjA0IdHIw aChke3WfOEZHH7cW2ljFyjra7l/gVFAVyhunomIGqcDSxBhlbdApi4k9GlpUnFPxp3 rjMynfRb4ZPvPfqGniD2DHlS1frZ+vXZLSGQeJkBvbZ4XTyWl1I7I26dhxA5o1OgI7 hx/LKamZnTRjw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0B7B2180078 for ; Sun, 4 Aug 2024 17:31:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from ageofdream.com (ageofdream.com [45.33.21.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 4 Aug 2024 17:31:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ageofdream.com; s=ageofdream; t=1722792566; bh=jBiq+iLb5b/uve+5Sipmuu4SKgCQyo9kEXr6WhlH6LI=; h=Subject:From:To:Date:In-Reply-To:References:From; b=zdVXhga2c2cJCk/JpXCsyzipfSweVLIpi+S5iStkv/c1XUQsi0A82LfA1x54QAbGP Hkwa4y7rB0aU962a0NknVNoKe9HyMKiF3QhTZlOR5/154b1Yvn/TTq0bF+wFuT/9h0 nv9qbNuLcJMVb2kFSzEJK7WhVyQN7nTrURq68itL0gGZ98E9ric9kXJc9xrT/xLW9m YIlF7Qk1Vt+gIkfHzfIWdvM1/o24p4PWmB9SX0vcGWywX/20rXZ/JfyvL24or9+uin 464fk2H6E3Z2oWKMEJlXIPXm6WaAOsBP7pbxCOAP0p/zKBi4ckIhx0GnlU0h/yJ/Uc HgdBgU01r4pSQ== Received: from [192.168.1.7] (unknown [72.255.193.122]) by ageofdream.com (Postfix) with ESMTPSA id 286C127985 for ; Sun, 4 Aug 2024 13:29:26 -0400 (EDT) Message-ID: <5f1da5195e2aea7ec41e95ff4354f50b1717d3cf.camel@ageofdream.com> Subject: Re: [PHP-DEV] [RFC] Add Directive to Make All Namespaced Function Calls Global To: internals@lists.php.net Date: Sun, 04 Aug 2024 13:29:25 -0400 In-Reply-To: References: <1a88918e-e808-d778-45e1-53797660e093@php.net> <3563cf9b-8eab-4c82-b525-a5d2f9a767bb@varteg.nz> <38920A4B-790D-48C7-B2F6-C49D3F506232@rwec.co.uk> <0824789d-0e36-4628-85c1-4b8d9b7f86af@varteg.nz> <2244a37f-8c51-448d-8a56-329ff32e6470@bastelstu.be> <0e1a21ddef3c7da17a3539b92d5f442763f4b1f8.camel@ageofdream.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 From: lists@ageofdream.com (Nick Lockheart) On Sun, 2024-08-04 at 19:15 +0200, Ilija Tovilo wrote: > Hi Nick >=20 > I find it a bit unfortunate that you gave my thread barely any time > to > be discussed. >=20 My intent was to start a formal discussion on this very topic. > This can be achieved in various ways. For example: >=20 > * Per-file, via declare(), new use syntax, or whatnot. > * Globally, through an INI setting. > * Via hard cut in a new PHP version, where a relative calls just stop > looking up local scope. > * By flipping lookup order, as proposed in my last thread. >=20 > One might be in favor of one approach but not others. Of course, > everybody will be in favor of a "free" 2-4% speedup. Hence, a yes > vote > won't mean much. >=20 > Ilija From reviewing past RFCs over the past few weeks, I think the issue was too big and went in too many different directions to get consensus. So I thought the best approach would be to break it into different parts. If no one wants to implement this feature, it doesn't matter how or at what level. So I wanted to get a "yes" from the people who need to say yes, then discuss all of those things you mentioned: 1. File level vs global 2. Syntax 3. Alternative options But I think we need a "yes" for the concept first. Otherwise the vote will fail on the details, as they have in the past.