Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125140 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 0D1131A00EA for ; Fri, 23 Aug 2024 13:21:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724419392; bh=Uwe0mpi8YoKa8d1Sp/B6ljO2Kn4bCS3YuprnV0KmrNk=; h=Date:From:To:In-Reply-To:References:Subject:From; b=m1Zp4krW4QdmCe5E1RsJzJkLNXHXew7KR+HoQhGgMDQDhAFG+NR8JSFt0VOzQZWoY O55pK/UsMSId5+WT3/6q5Dr1kghsT6R+h8dSqh/bgWyLFxCl7o24TGZQdWkq4sMmTR E+jeyRDHe67b/3U4kJ/2s1ciBU1lj4bgFWqWG98m080lb0cmPfwbHJwvsv0XOjKJeS UNMFFcPHgs3lR9tZLMfJR1o12ZGX3ZTYkIksGTCVgojH9cwyeWZwSbwAzhkO9+/yfK n+ORk8cv+/mA9cp8q6zBZ6IH2keukT/wNiCBSuK2e8+KtvHOSCWvl2Az5H96kRBnTJ WlqRMPgtltnfQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 055F81801E8 for ; Fri, 23 Aug 2024 13:23:11 +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.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout2-smtp.messagingengine.com (fout2-smtp.messagingengine.com [103.168.172.145]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 23 Aug 2024 13:23:07 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.nyi.internal [10.202.2.43]) by mailfout.nyi.internal (Postfix) with ESMTP id 933461390034 for ; Fri, 23 Aug 2024 09:21:16 -0400 (EDT) Received: from phl-imap-10 ([10.202.2.85]) by phl-compute-03.internal (MEProxy); Fri, 23 Aug 2024 09:21:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1724419276; x=1724505676; bh=t7MqI7pAiqqTYrnPWFh+Go8DPbxHwFgmiHqsp3Fu4Mc=; b= isR9hQF2SoAO4B3Qkd17NXVIZjyEivIOC+k5K2+8uzs+wDjHHOy9n8p8xVNYRMZE Z3DSD0/ptYARH2csCWghNFXZaTAkiztyiCfpuYRlyHm7cDYWbf8fvAw7sYyBJDVm RscTvN835PdQQ8/UwYY8RFf2xAuAJfBSgjfTMmPBPHbGoSGyI8gEUwvZxnbx5Siz TwB915c8MDMC4YAZhZApPDPM2gSmw+iuSrR4C0NzhWtNJsmXu9EoEznX8bDhOAZv 0NhP4wfXd6U7XtBUjV8/yYfyIj2riWf8dyB1qAu/qZduYBMt3nZpkL+icbxuRR0U 4VEU/Kd7OL03SWkajYRpWg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1724419276; x= 1724505676; bh=t7MqI7pAiqqTYrnPWFh+Go8DPbxHwFgmiHqsp3Fu4Mc=; b=Y GKiP9IofBE4ZsJYpTUkTKLe2xt84EQsS6o02mXCnVvsf/7PM0ESqa9+B+et5B3xT hHiTuPSfvoLZeoIFX8zrwZaN3zBrB9VqjJOxspOxZpVhZSaFZQa7e5az/7Z8Za1N jdLTCW0Ptx0PEcKgxfrEFgiHNeyLnC7TOYDXPYN/69sIVzV6pAXkfKB+kciv2fdP 0hRHqaHIeuGgosHpMbrd5VF89dqXeSKlBAqJN0Clr+LilNCNPlF8twt5jajps5Au oastvYE/deKYMZvXb+ef0VOPLCIGsH5NaRDEJk2DlT8ZxNjvXl+UgSvPQlq/AVYm DYotzpZhG8k+QvHoCSRUQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddvvddgieefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefoggffhf fvkfgjfhfutgfgsehtjeertdertddtnecuhfhrohhmpedftfhofigrnhcuvfhomhhmihhn shculgfkoffuohfrngdfuceoihhmshhophdrphhhphesrhifvggtrdgtohdruhhkqeenuc ggtffrrghtthgvrhhnpeevjefgvdehffeuudelgfeutdehteefhedtffdthfetvedulefg ueeiteelffeuvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehimhhsohhprdhphhhpsehrfigvtgdrtghordhukhdpnhgspghrtghpthhtohep uddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsheslhhish htshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 63BA33C0068; Fri, 23 Aug 2024 09:21:16 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Fri, 23 Aug 2024 14:20:55 +0100 To: internals@lists.php.net Message-ID: <0d269a38-28fe-494c-a903-50022e09f27b@app.fastmail.com> In-Reply-To: <7607FD64-5572-466E-9866-63C2536B2A09@koalephant.com> References: <21D6F160-5EAE-44FA-907B-E1DAAC1B8D75@rwec.co.uk> <53BD062A-4D7F-4E5D-852E-6D27641213A8@koalephant.com> <7607FD64-5572-466E-9866-63C2536B2A09@koalephant.com> Subject: Re: [PHP-DEV] [Concept] Flip relative function lookup order (global, then local) Content-Type: text/plain Content-Transfer-Encoding: 7bit From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On Fri, 23 Aug 2024, at 13:43, Stephen Reay wrote: > This change would also break existing code that does "the right thing", > and has the potential to arbitrarily break perfectly valid userland > code *any time a new global function is added*, forever. You replied to me, but you seem to be commenting on one of the other proposals. My preference is for "unqualified = global", which is a one-off breaking change, which only affects user-defined functions, which are declared in a namespace, and used in that same namespace. You're right that it would mean classes and functions resolve differently, and that's why I said that if I had a time machine, I would support a different option. But, personally, I don't think the small long-term inconsistency outweighs the huge short-term disruption of defaulting to local. Regards, -- Rowan Tommins [IMSoP]