Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125062 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 EACE71A00BD for ; Tue, 20 Aug 2024 06:50:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724136722; bh=0dfENPl/dJUf4NNoUqLbVrdMKTt/wth4UF+T6yDu1E4=; h=Date:From:To:Subject:In-Reply-To:References:From; b=RgPgG3BU5yYyzWeJWt4Dh3vZs+qZh8rP487ZT5WawYPL9jJ6RI9ryDGnCTEgCObzU mtaFqUjrH5lKZ8HbBpsAABBj9VhNibemfU61R8UKEHnPikfCVcborw6QscbMtVVsRX pZtCXA/6BqUfwR9w/lWOxzNwBJY+ZPAb3affcl5uagCWtiyleZXLC90HFwWWK43QCY 5MdzcDsZ3KvQ+/Z/LPs6ZXhphUKx+Iy6zub4154lSGWMn3JJ9qP+KSovpR09EH/oGx L3ggshKimOB5XRojmxWIZUFTAXQl5dUKe4pP9OJZWtPY5YhLvNylEdhtGiPumYdKKI W9iIUqLm6y6qA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3483C180062 for ; Tue, 20 Aug 2024 06:52:01 +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 fout1-smtp.messagingengine.com (fout1-smtp.messagingengine.com [103.168.172.144]) (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 ; Tue, 20 Aug 2024 06:52:00 +0000 (UTC) Received: from phl-compute-05.internal (phl-compute-05.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id 804A8138FFB2 for ; Tue, 20 Aug 2024 02:50:10 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Tue, 20 Aug 2024 02:50:10 -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=1724136610; x=1724223010; bh=6IWZW6bu8IipUBSm/QSN5jWXS2/1MthDYdRJHr8kRz8=; b= sjTKz0VNEtnpCeEeOSReB+82K1zlQ8DGtLufvrd2fHzwGBR4+oVYYdgplUcwAt/X fAGtaAQDRl9utrEeg+pu4AY/VMlf4c8o8I+NmK6zyJj3/+mh/3elZ5sSaVfEMLgn wbi16iaU92MOU3aPfv1bPmbzajv99tXuInSoUAKFPd+TomKhmmH3bTKXhMLWtgFj vqur2IEy+WSQUOumMgnx7S5DQPwGwELilW7n5ejKEPDDkpyKDKGx2YxH5HLNYGmN o8MH60wMAFsFNUwcGzuKmFYQM4Ckh+9APT/oj77K2VmgdWl+sUo6cp1AVKeiS5FN aR6ohwCcILTOfPZ8kpk36g== 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=1724136610; x= 1724223010; bh=6IWZW6bu8IipUBSm/QSN5jWXS2/1MthDYdRJHr8kRz8=; b=U gat0nDELFGQ4YbNyag3joiN8mv+Poq0TQ7dKh6AvEPRUwVFImF+ovWnQy8ckqO3z tGhp0WxOjSL+rS9UmShKC3tuZI6TPV1FVPLMHQAxgPQbAfKZ4Onr88ckuY2Lktfs SsKGgXJZwQSIXjjVUlmw6QQIIK2zEdckvwV86XKI9JsIpDPr8kXmvbWKGTHkXfzR rh0F98+0IOxeiBvHqrhIC5pR+iT06E5N+6aF25hYmPv11jqx6xy6iWbu2bd+xSgE Bb4QVniEQ/svizl8A7jSZ1KEXDnPiJPJ4lDAnfGd8/9oO4zAzF7JZmCqbizshiaJ D0mbSfPAa7m3NNFv0psFQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudduhedguddugecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvf fufggjfhfkgggtgfesthhqmhdttderjeenucfhrhhomhepfdftohifrghnucfvohhmmhhi nhhsucglkffoufhorfgnfdcuoehimhhsohhprdhphhhpsehrfigvtgdrtghordhukheqne cuggftrfgrthhtvghrnhepheelffetiefgveduteefudegtdduveeludegueegleehiefh hefgtdekveevgfelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepihhmshhophdrphhhphesrhifvggtrdgtohdruhhkpdhnsggprhgtphhtthho pedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehinhhtvghrnhgrlhhssehlih hsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 20 Aug 2024 02:50:09 -0400 (EDT) Date: Tue, 20 Aug 2024 07:50:07 +0100 To: internals@lists.php.net Subject: Re: [PHP-DEV] function autoloading v4 RFC User-Agent: K-9 Mail for Android In-Reply-To: <97d993ee-c558-43a1-a36a-8e06aa2d829a@app.fastmail.com> References: <2716f729-4008-4f75-8412-861d8960b746@app.fastmail.com> <26338153-6d16-456a-81bf-8231bdaf1b79@app.fastmail.com> <6197f6e1-d123-41e1-87c8-887c6508bfa2@rwec.co.uk> <97d993ee-c558-43a1-a36a-8e06aa2d829a@app.fastmail.com> Message-ID: <1E9FCFA6-4FAD-4F47-9FC6-6AA8F2FD6BBF@rwec.co.uk> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 20 August 2024 00:21:22 BST, Rob Landers wrote: > >I assume you are worried about something like this passing test? > >--TEST-- >show called only once >--FILE-- > >namespace test; > >spl_autoload_register(function($name) { > echo "name=3D$name\n"; >}, true, false, SPL_AUTOLOAD_FUNCTION); > >echo strlen('foo'); >echo strlen('bar'); >echo strlen('baz'); >?> >--EXPECT-- >name=3Dtest\strlen >333 > >In my RFC, I mention it is called exactly once=2E I haven't looked at the PR, only the RFC, and I did not see this very impo= rtant detail explained anywhere=2E The only thing I can see is this rather = ambiguous sentence: > The function autoloader will not be called again=2E=20 That could mean not called again for the current call (compared with propo= sals that call it a second time with the unequalled name); it could mean no= t called again for the current line of code (based on the current caching b= ehaviour); or never called again for that combination of namespace and name= ; or possibly, never called again for that combination of namespace, name, = and callback function=2E That's not a small detail of the implementation, it's a really fundamental= difference from previous proposals=2E=20 So I would like to repeat my first response to your RFC: that it should so= und more time explaining your approach to the multiple lookup problem=2E Regards, Rowan Tommins [IMSoP]