Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126020 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 D6F371A00D1 for ; Thu, 21 Nov 2024 10:27:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1732184992; bh=cl2WJmJiAYp2+XwRwoMVx6ZAEjVBIa5+w1uPQEN871Y=; h=Date:From:To:Subject:In-Reply-To:References:From; b=N+WgSbmErl3cDI+uB1EM1tI+05yurWeRnq3IjrRB6wF5S1cc0AiNUnbB9SvY/TA0G kBdRYgoKdJsyHjtDQlXejpgLYPcS34dJoIJMIE8Oa4hGra+BOwLDdW0InuIuK/4X9F I8IuRZUbHb9XXY8fzJTJOWjxydBmRX2vEvoYYdt/j5CBOWB8sxnu6b0auVhfuSDxXl Px9lMJaQkCMdaplE1znH2Zr5AZlM934RzmGhaNmorWXAiSz8DXUlsK9b3kQ5emYgej bPoH2cWYXrn7FIENez+1zteLlak35t+Kd6VpHTfNJhqcfbBaTUePkRFbkwqxG1uC5H gLX/hi8H/J/jg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 98A791801E4 for ; Thu, 21 Nov 2024 10:29:50 +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 fhigh-b3-smtp.messagingengine.com (fhigh-b3-smtp.messagingengine.com [202.12.124.154]) (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 ; Thu, 21 Nov 2024 10:29:48 +0000 (UTC) Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfhigh.stl.internal (Postfix) with ESMTP id 8C283254007D for ; Thu, 21 Nov 2024 05:27:07 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Thu, 21 Nov 2024 05:27:07 -0500 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=1732184827; x=1732271227; bh=cl2WJmJiAYp2+XwRwoMVx6ZAEjVBIa5+w1uPQEN871Y=; b= OSAbdVizvGKVBwU2v/1CdxPQvRFUO5gFHp7jXVb5HRC5yQVT7LHbgUBGuOGhZemu wZdbR1BV07EVFXvfY1TYV8Sb2HnZhWQ6fugAEYefSzwuOJB99e/F3gCWew6J5iwF VrBxUJURZrEej7DyXxt1ad32a3E3aYq7L+K96IT07/SBNkogKoT8gCZ/HAbbftbn HVdjCK83G7Xekjw2JG18+fMd0lQEZnBM8WNvjVLJq/1Wxu08671H4uq9+sFdWiTT POmK9gQ/iau4HZe3hxXgHx7HAuW+bc0YqzP6JbBKcWXwzQA8LL1s4HUrILEEIuVC JhcqgH2orTacbUHwHB4mfQ== 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-sender :x-me-sender:x-sasl-enc; s=fm1; t=1732184827; x=1732271227; bh=c l2WJmJiAYp2+XwRwoMVx6ZAEjVBIa5+w1uPQEN871Y=; b=tD5uNKaFpduDxYydC HL6rGWzDWQKj23zTvgv7UBm/QtaxtWkCEqvGdrY9JnGeIsxH0JgI1cs/Mj491QNL 3Td1queM8bVy/EDyM9l7vimjHHd/nSZVNUm9E+SGHPMk6u1oMPPNj1NI+BZMSMFz s15UEv8B6iwUXiyGeo2uUdCkz+abJ1BQnohntOCbBq3carx4rdwdzPdKEny8liNr +M4q46HKQBMWMGRa+p9o6p43sEznP6KhzMKbkCIUknCooYFW43/8pKXfcxcSajCR wgl7UHTzKGH9no+nF071y/fmQnaZUkM8q5wBQSPW2LAtx12o2JoqWA5VSgrzqdaf ypZqg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrfeeigdduhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffufg gjfhfkgggtgfesthhqmhdttderjeenucfhrhhomhepfdftohifrghnucfvohhmmhhinhhs ucglkffoufhorfgnfdcuoehimhhsohhprdhphhhpsehrfigvtgdrtghordhukheqnecugg ftrfgrthhtvghrnhepheelffetiefgveduteefudegtdduveeludegueegleehiefhhefg tdekveevgfelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepihhmshhophdrphhhphesrhifvggtrdgtohdruhhkpdhnsggprhgtphhtthhopedu pdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehinhhtvghrnhgrlhhssehlihhsth hsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 21 Nov 2024 05:27:06 -0500 (EST) Date: Thu, 21 Nov 2024 10:27:04 +0000 To: internals@lists.php.net Subject: Re: [PHP-DEV] opcache_compile_file() declares top-level functions User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: <09E90996-133F-47FD-878F-5D1F7A99A3ED@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 21 November 2024 08:15:12 GMT, Daniil Gentili wrote: >Hi Ilija, >I believe the removal of function caching is a bit of an overreaction: it= was always known, to those who used it, that preloading will cache functio= ns, and requires an include guard to avoid function redeclaration errors, a= nd in fact it is a very useful feature=2E > >There is nothing wrong with this behaviour, and it does what you expect i= t to do=2E This reads rather awkwardly, because you're claiming to speak for some unk= nown users ("those who used it") and even for the reader of the message ("i= t does what you expect it to do")=2E More helpful would be to say how *you* use it, or where you have seen it u= sed=2E Evidently it wasn't obvious to Ilija, and wasn't what they expected= =2E Since it's not mentioned in the manual, it's not what I would have expe= cted either=2E Ilija also went to some length to describe real practical problems, so jus= t saying there's "nothing wrong with this behaviour" also seems unhelpful= =2E Perhaps you could expand on why you think the problems illustrated aren= 't significant in practice? I would also be interested to know if you think the difference in behaviou= r between classes and functions is explicitly useful, or just neutral to yo= ur use case=2E=20 Regards, Rowan Tommins [IMSoP]