Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107725 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 1665 invoked from network); 29 Oct 2019 02:13:46 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 29 Oct 2019 02:13:46 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id D12472CFDDF for ; Mon, 28 Oct 2019 17:01:16 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS47692 77.244.240.0/20 X-Spam-Virus: No Received: from atvie01s.evermeet.cx (evermeet.cx [77.244.245.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Mon, 28 Oct 2019 17:01:15 -0700 (PDT) Received: from epsilon3.local (23-233-9-248.cpe.pppoe.ca [23.233.9.248]) (authenticated bits=0) by atvie01s.evermeet.cx (8.15.2/8.15.2) with ESMTPSA id x9T01C24008298 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 29 Oct 2019 01:01:13 +0100 DKIM-Filter: OpenDKIM Filter v2.10.3 atvie01s.evermeet.cx x9T01C24008298 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=evermeet.cx; s=d201909; t=1572307274; bh=udcjntoPiBpQGTz+qjV23QSuKk/xWZeXrZ2f8TGHikw=; h=Subject:To:References:From:Date:In-Reply-To:From; b=CfemTvHI8c85HZ3choT/VBCH4eIrJw97z0xq40bfamhVFvbHqZhFbsAyFhQlrQP49 k4myc638NzMmK48IW/yCWFEpTM8uKmcNLSZB6z2jLzi/l8HqWsKRuKAJYFP5U+4ON0 PxN0B26nAtKOZM7Aft9Jn1D/2lra41ytTk3UWObPhNcBPgL9Qi4OBavDkX4ZEST6Wr zTx5WU+qIe7dhlCOI1Lr6/dwhQEZMhNaIM7PUs2xzzTcenfPfdmzOpHbO001YyFL6b 6pgTmBXs5F6Chrzh+0xj4Lihr2P1TOs/0FW+hzjPkKYsfNe4+J/FwJXsaTd5qhUl2s KDiwhA7u9zvNg== To: Eric Krona , internals@lists.php.net References: <119c7c14-0314-94e7-ca70-a60adcec7f20@itomat.se> Openpgp: id=8A5570C1BD85D34EADBC386C172380A011EF4944 Message-ID: Date: Mon, 28 Oct 2019 20:01:06 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <119c7c14-0314-94e7-ca70-a60adcec7f20@itomat.se> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="A5HrLdMY8tiwxUCuXnCZ8VoxntScZt2sP" X-Envelope-From: Subject: Re: [PHP-DEV] symbolic links and opcache peculiarity From: tessarek@evermeet.cx ("Helmut K. C. Tessarek") --A5HrLdMY8tiwxUCuXnCZ8VoxntScZt2sP Content-Type: multipart/mixed; boundary="kKuANBtToohbNwrdVP2YARBD6HFPceNPQ"; protected-headers="v1" From: "Helmut K. C. Tessarek" To: Eric Krona , internals@lists.php.net Message-ID: Subject: Re: [PHP-DEV] symbolic links and opcache peculiarity References: <119c7c14-0314-94e7-ca70-a60adcec7f20@itomat.se> In-Reply-To: <119c7c14-0314-94e7-ca70-a60adcec7f20@itomat.se> --kKuANBtToohbNwrdVP2YARBD6HFPceNPQ Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 2019-10-28 17:30, Eric Krona wrote: > This is a long-standing issue with the opcache, its frequently seen whe= n=20 > deploying code using a symlink swap as the final step to atomically lau= nch=20 > the new code. Thank you very much for your reply. However, in my case I was not really deploying something, but I get your point. > I have not seen a bug report somewhere to php, but its possibly a quest= ion=20 > if it should be considered a bug or not. Yep, this is the question I hoped would be answered on internals. > There are settings to trigger a re-evaluation which the links describe,= > and its also possible to call opcache_reset() for example. This is just a workaround, which I used anyway. If the culprit is a combination of opcache and realpath caching, it should still be mentioned= somewhere in the docs. In my case, it was rather an edge case and I usually would not run into t= his problem. It is something I have noticed though, and I hoped I'd get some feedback = from the developers. Thanks again for the reply and the links. Cheers, K. C. --=20 regards Helmut K. C. Tessarek KeyID 0x172380A011EF4944 Key fingerprint =3D 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944 /* Thou shalt not follow the NULL pointer for chaos and madness await thee at its end. */ --kKuANBtToohbNwrdVP2YARBD6HFPceNPQ-- --A5HrLdMY8tiwxUCuXnCZ8VoxntScZt2sP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE191csiqpm8f5Ln9WvgmFNJ1E3QAFAl23gUIACgkQvgmFNJ1E 3QAwtRAAmhK4zhSYjodNmfVRp3zWHsOHhCYfwVFBluEry0/Ab6HDVJ+h7ktgMBKG s0gkGcUCo3XQfMb0VexZTaexjHWNLgipYnQ5rdrTSyGKSM5vWFBi2wGIb82ZKyjh CViasoENzyqFjuOyzZdOwDNarSik2V593Y2hK/Slhja4DlgyBRGnsRL8lZ+UpyYd tHXfazw4190IaakHo1b4ZaRKkfoDQLOthn+sd2ozUqvhwjw59tcoOxTv44+saBWM we0gQI5rDtN/AQ4SgMUC3K+gxaptJBU52Jw8FJjfn/kzi2/skC7ltrnq3HVDgI5R 4AJOLim9Jxe8XpCfbQ/q5aiRE5MpgImYu78MxaUnPcHxYKRbQmIgYOmgjZ2LhoO5 bJah9KKrCPUQbWn4LPuOHJW6j7rlvVca6IPOXQ32d3Friw8metx3oWMrI/2d37fN Rj+pX2yKJ8Eqlo/DD5eqQ57+FmY34+cJjW5bWQSNE7FOYE5y6REJq5Yzbtuss/RW myaKNy4tLCItyycbO8b+5rtr3B2fdbt0ACzFt3bYJ0QBRU/gFSK+BvAhTpa4xLwZ 9StQq4tla2in5QfHV4C6E41pw+ueYnOJv08OmQk/7ViZJ1vLDPWTHcTW+stRK/GX 3g92LpOdBFiVX4z53y7hwZHJ6idyvRlkKobDf6OkMlWK/7SKB0Q= =dP+O -----END PGP SIGNATURE----- --A5HrLdMY8tiwxUCuXnCZ8VoxntScZt2sP--