Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125129 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 DC4881A00BD for ; Fri, 23 Aug 2024 12:13:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724415342; bh=xdne/oWqqatHdCDEZyzXtEMjkBHR4hAFxVVaUoVCj5w=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=FowL8U8K2Prgz87V80HnjSrIbyXliMwCkTvU4nPDuUzl2lPtRbIAp500bKeqXArVm BnV5J6KXOjPF27ZNtoCY2AvzJp6/o9byMexjVNKuo3EXbkpUyN1DYtutR8/pS9p0ds m/tVPCGXzmRkEcweEntyAOUdXin9/fxhShFnAxPkjhU4KCxrP6FqiUA28ei+BA1hy7 zb/tpfGs8froyO3v7s1Fz3oPB36ZE/pwvXWnFTXVlHtBpgpx3+Q8OcuaK9EoFjz3Er /nbKNN6VDKFiZ/OyEKoAbX2JMsfAolEVhVbpJNqSOF5SAU70kNw5+yr0euaPafus9A iHwNGOKO7v7zw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 10D8A18003E for ; Fri, 23 Aug 2024 12:15:42 +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.2 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 23 Aug 2024 12:15:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1724415226; x=1725020026; i=cmbecker69@gmx.de; bh=xdne/oWqqatHdCDEZyzXtEMjkBHR4hAFxVVaUoVCj5w=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=c1X8HM02TwvCyq7JcqNYte/LQCr/JdF8eF4h1tnTel8UNqHpoHc3+OPqKrk4zPBh qyiKxyNvlq9ukOY7JKR7ih5BksOfAxVOj/559XRza1Hw1/imJR+J+lbvN2W9UsbFC KWQvMYTMYNugkZ0XkLGjBXmvcTeHKe78nle0Zv9IdVFW5a29mtS7mbJiJlFZsecDj Zv4y21XcTXq/63tv2wgXEia1fV3biqGvjvKA5lCQMyPn+Ee0upvFWtmvHUXNWUkni a0VE7stCEfxUiaDJ+9OW9FUexubcKg0Ai8jbGjgg7dyu9qHsg0lIP2cnRD9kFEOOK uObENMzQwS4DUEhzdw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.2.130] ([79.251.205.37]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MO9z7-1sSFfM3ryL-00Incq; Fri, 23 Aug 2024 14:13:45 +0200 Message-ID: <5fe60b58-845c-4c7b-be11-a98dd53d9ae9@gmx.de> Date: Fri, 23 Aug 2024 14:13:44 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [Concept] Flip relative function lookup order (global,then local) Content-Language: de-DE To: Mike Schinkel , Nick Lockheart Cc: internals@lists.php.net References: <846D7756-712B-4A7C-9FC6-DB9F858836B8@rwec.co.uk> <880ffc27dc9b421407a670c75d5f5ba756870396.camel@ageofdream.com> <790534cd-e158-4712-878c-642dfd0e2bad@app.fastmail.com> <5A8049C2-47E2-4B11-89E7-B9195DBDC7B3@newclarity.net> In-Reply-To: <5A8049C2-47E2-4B11-89E7-B9195DBDC7B3@newclarity.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:agIDjIs13wLS2Q0AkJ4Ivb74CdMtvuQoZNtbjM3rdbuEbjjJvEr 2ZigtPbBMvWqj7KZ6GkxgS9qTTzaYWmLWzSzosOhshJqu54pQPJ5uqvgtTwEfLTN8Jm+YTO q0QOOKkpdkvkb7W5k7nelPJ8gY7VkG9kdsO8Ry8w5NO2cgE8pVT9yw/U5D0Hcwe9h+gEzkZ mg0ZxkuEZu9QKcZA7zD3w== UI-OutboundReport: notjunk:1;M01:P0:fysRyfK19XU=;AtnnhkoesAc21lM2mmvwcH866FA Byg4OAuLdu79aQ9eQGW/3yTwv4Xe6ex9j3yKuA/DHNOrILDUZeyoVhEhkw2csoh13CTBw12Qx RureJemg/xVpOUPAFBP4FooRMY7XVcMY58MT/BKWdICHpoHAAnoalIyosGEqS2ztdBNVR7hL3 qbP+0KCHS0XXQM3r0voC6IQDqnNAaHscQu0437RhceX4MsokjZWyD0+7pUENRUVGl710uGdpi QSUUtKVFIeGYpk9Fi8Rdy8bAZFVBxB4yWQzBwA2FzTlx6DWotU0OKs+BAEXxEpvR+HfVCjsNx 7kEhEZp+75L0sS8Gd+abgb0+WbyVHB0TEW2mA99Pbt1IIozhcSpiTZWYZ4pwu/L9YkFizqYnU 3iIW8+1UAhrWdfAfC1EApbHJiH39eaw9/0UnsAv4qxItkuNMTcC8TbgK7RNg+O8FLkoW0g+Rq 8FoMbLZpoGcwuZFSjC9yLXxxKVdvZSq0thbIFY8kNzpj/fI3Cv1EaFlxI98/XrR6Uo7tsgmkx AnZGJXss4M0h2QI52h9QZpbpApJ4UeBIdntDqWObC9Tm+eHIwIc+6KELIrhISO3S5pRdaTswQ svP8po36p6veyW92OMtm05xS4+Fhj7PlmtkkUo7tVQvtu8lo46oQFntnN4rXWtvT4wko7mTJ/ trMUvkAIeuMeHRNqQHvjYvHtgDoDPdmSjstp0hABXdJ4n64gS/jHpe4Z0S73gm+lSGlRyGckp AbXfII+cmAm3bLi3NmhcTAJhyks69e/hLMhxkwNfgdbfly87AS2Bl9QkOef4LZGw7SfOyEBpD 7XuAoi5fiAgOdv1C8G7nws0A== From: cmbecker69@gmx.de ("Christoph M. Becker") On 23.08.2024 at 13:52, Mike Schinkel wrote: > In theory it would be nice to open up PHP to allow overriding core funct= ions, but that could also open a Pandora's box, the kind that makes Ruby c= ode so fragile. At least in Go you have to omit the standard lib import an= d use your own import to override a standard library package. > > So in practice PHP may never change to allow core functions to be overri= dden and thus pining for that to block this idea would be a missed opportu= nity. (That said, PHP could allow a userland function to be "registered" t= o be called instead of the core function, and if that were allowed then Ni= ck's proposal would cause no problems. Of course I doubt internals would e= ver bless that idea.) There are already PECL extensions which allow to do this, e.g. * * And I'd leave it at this. Christoph