Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103495 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 21674 invoked from network); 25 Nov 2018 21:12:19 -0000 Received: from unknown (HELO out4-smtp.messagingengine.com) (66.111.4.28) by pb1.pair.com with SMTP; 25 Nov 2018 21:12:19 -0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 4CC1928535 for ; Sun, 25 Nov 2018 12:35:30 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sun, 25 Nov 2018 12:35:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=mD3B8L L4oDgMgva7ly8XGTEDnVaklZlZxR0/np/stDY=; b=X6Vhn8k03DJsj7LEe8zrIm gVMYZpYyGF6RCi4353zJvAGxS/yUAnX2GFyfv/adOn+133ZUFzV9C/H/vS5AFCdN oWwUNt2L9lMZQCVxcllRg5Yh9hRtEd4i9nRocPFma8DN7q9zL4C+7MxqsehuJ3aB olJbCKKc1m8eAo12H8WZDzlptPUXRu9URgdbKUXJiu3rX2RJS7hM3GTRU1PUtYtw Iz9qp7NlE+VXn4ergp60/ysGg6UeNjc/oMmNDJA7fe2U84w2rkIjuBMPf1io8EGO zQ+fk1cvSy47ZtJd3ONx81tT6j4XMzAoSbwSZM5C+UCwysbj8kpKq9CObWLRvgSA == X-ME-Sender: X-ME-Proxy: Received: from vulcan.localnet (216-80-30-152.s3222.c3-0.frg-cbr1.chi-frg.il.cable.rcncustomer.com [216.80.30.152]) by mail.messagingengine.com (Postfix) with ESMTPA id 988A3E46B7 for ; Sun, 25 Nov 2018 12:35:29 -0500 (EST) To: internals@lists.php.net Date: Sun, 25 Nov 2018 11:34:49 -0600 Message-ID: <13080739.R29hdSaLfc@vulcan> In-Reply-To: References: <7f65012b-e26a-fb58-718b-b35569e53d03@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1981470.nU3gaLVJzh"; micalg="pgp-sha512"; protocol="application/pgp-signature" Subject: Re: [PHP-DEV] [mini-RFC] Disable opcache per script using "declare(cache=0)" From: larry@garfieldtech.com (Larry Garfield) --nextPart1981470.nU3gaLVJzh Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Saturday, November 24, 2018 11:03:01 PM CST Marco Pivetta wrote: > Adding to the pile of "it's an edge case", since the preload scripts will > be procedural, wouldn't it be sufficient to call > `opcache_invalidate(__FILE__)` at the end of them? Are we certain that it will always be procedural? Is there a part of the preload script design that prevents it from defining a function? I'd be very surprised if someone defined a class in a preload script, but I can definitely see a function getting defined somewhere. And if it includes some other file (eg, Composer may be generating one, frameworks may build one, etc.) then who knows what that file will have defined. Would that cause issues in this case? --Larry Garfield --nextPart1981470.nU3gaLVJzh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEE/ph/GXfY8v0YwFBp4MMKwDFxYXcFAlv63TkACgkQ4MMKwDFx YXc9Lgf8D9i1zeKVpkByIOgInnPGP+/aO8sMdUBO/T+f9jRCnuWkUYFndzQkH6So XEF8ASlwzYKJeY2Ov9yHsUMnGWw1ln317TInV0GUhWfibRkgwEEGON0wuxZ4u3+B USfyjM9OZwnYRb+rhK/XdvlHDRI3MxFWzb9LnQ+FCfWbUdIXChkyUZun3EQPxO0H H9Faq9LuWfW2n+ZcjbaBknry/TX+yxIFF9ZFKA/uNxM4aLPPj7iH5K7InLrkO0g7 wzXpVrJ12daDfacwkJkzZoyehbd7hEs8ti5bKQMrfLA7Q2qjRiSan0YHhR5gJuBg Mz9hnF9Wm8gj8BqpqYOAWsLihCteuA== =pe27 -----END PGP SIGNATURE----- --nextPart1981470.nU3gaLVJzh--