Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107650 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 82469 invoked from network); 24 Oct 2019 02:17:08 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 24 Oct 2019 02:17:08 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id 7EC3D2D20F0 for ; Wed, 23 Oct 2019 17:03:23 -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 ; Wed, 23 Oct 2019 17:03:22 -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 x9O03IQB000669 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 24 Oct 2019 02:03:20 +0200 DKIM-Filter: OpenDKIM Filter v2.10.3 atvie01s.evermeet.cx x9O03IQB000669 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=evermeet.cx; s=d201909; t=1571875400; bh=A9yrtIdqZcf5KvZQCMwzwZ0u+uWDxKA2Jqhc3LU22XA=; h=To:From:Subject:Date:From; b=QOpiJ8K5hdhQyKvr/CU1jaXi5qMuEgHSuXRJ+qz3KRMwOSA+I+87/4WUWooERQhDi 4BxMLCOmhM536GLFBQmD8SC3uOLyfkKy1pWGapWtJsWWcy7YPe29lHMA7FaGnLPsXO MEu9BP7EGr4J8KXLcDQzcRgpJim2gvDqXF25bloAygCRgDMT/dd0yoQGWEOdRKonxa LySkmhqcoX925oiilO7S7DBWQFJJmhFJw02bgrZmloWv/aj5tVJ1M5iClaM/cA49Xf b0K4UWtJEHhTk4qhPpbvSsRt2FGec3E7xtS4hGx4O0YDqoXWvaeQDLQDpTILN9rs9Y ZHTZan3QtFF/A== To: PHP internals Openpgp: id=8A5570C1BD85D34EADBC386C172380A011EF4944 Message-ID: Date: Wed, 23 Oct 2019 20:03:18 -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 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OI4wo2kN3Cpy7fmVz5vWqzpgFjYkPK2Pe" X-Envelope-From: Subject: symbolic links and opcache peculiarity From: tessarek@evermeet.cx ("Helmut K. C. Tessarek") --OI4wo2kN3Cpy7fmVz5vWqzpgFjYkPK2Pe Content-Type: multipart/mixed; boundary="lZuUzLwsa6KSYmYrR6gLJTqo5dXdTkWWM"; protected-headers="v1" From: "Helmut K. C. Tessarek" To: PHP internals Message-ID: Subject: symbolic links and opcache peculiarity --lZuUzLwsa6KSYmYrR6gLJTqo5dXdTkWWM Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable I'm not sure, if this is a bug or a peculiarity with opcache, but it's definitely not a user question thus I am poating it in internals. I came across a weird situation today that left me dumbfounded. I have the following symbolic link: index.php -> ../v1/idx.php The link index.php is in the directory /data/pr/test/, yet the file /data/pr/test/index.php was not in the list of cached files even though I= certainly accessed the file and there's no blacklist and other files in t= hat directory were in the list. This was the first strange thing, but I thoug= ht, hey, maybe only the real file (/data/pr/v1/idx.php) is cached. But here's the kicker: After I changed the sym link to point to another file index.php -> ../v2/index2.php I had to reset the opcache that the correct page was served. My revalidate_freq is set to 60 seconds. I also tested different browsers= , deleted the cache in the browser, waited for more than 60 seconds, nothin= g helped. Only resetting the cache solved the issue (I actually restarted f= pm). Please let me know, if I should open a bug or if opcache just doesn't wor= k with symbolic 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. */ --lZuUzLwsa6KSYmYrR6gLJTqo5dXdTkWWM-- --OI4wo2kN3Cpy7fmVz5vWqzpgFjYkPK2Pe Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE191csiqpm8f5Ln9WvgmFNJ1E3QAFAl2w6kYACgkQvgmFNJ1E 3QAVAg/+K3Fm6JCDYX8ZPz9y0IZSKZAozUHoqgbaKS9qwzPW5KW1kc64NSyDduuv 6zRFhe2hb9qP+wtnFswdwPxA1f6CSg9U1vnFA4Dmiic5A4t8c8BFPIVjcmao9JqY bFZ9CqurtR/w4WgFI5G3fw/67gYI3Ut3yFdnLT9Ay5CjMdkL7Fw1K3bChOhVmwor H4pWHdy6xGQ9r7n0+YVINtBL7E0M/2PHpo3XAFAhFkhOFj3qRrfHYY7tC0nt6/E/ 0iu6CE7AQCtfKcaVTd+ib0Uh6dSy5zEig2NsNU8nOmXDF3+3W0C3MrqKWrb42Faw 6exUSCiI87nziHVDsPVEN+dcv9XwPmxJarbPM9reViAHg6KF6Q8UdgrsXKBhhiPy Z/+1/psfWgmJ8QSTK2AvTkahUNR7ErM1b34pUuqSIPp+XTD2NmlXxx++Tf5qTz2h uuBcjKQQaqgwSPvsvdH/dgY9CgSZ7u2vxCmo1P0d5tnaDVpVMwUZMfS/Kbmw/5Fb TmpXJH7qOPdTaJWto+jvbnn39n3BgeWP6yTfkrburmQ8zo82l0gfBhbxkcdq2pTE HB6MImMPEeG428Xy5uNcfmbBlFnk8/2ovPsyZUYCtMOOx6D/PVamaDp58+4IhlAL 8qIU0Wfmuher15IGCUnWeyy2Q2Hpd5Ck2V++QIFO/DDt4D1evBw= =A9Hh -----END PGP SIGNATURE----- --OI4wo2kN3Cpy7fmVz5vWqzpgFjYkPK2Pe--