RE: [PHP-WIN] Utilizing the file cache on PHP 7.2
[email protected] (Anatol Belski) Sun, 3 Jun 2018 17:19:04 +0000
| Newsgroups | php.windows |
|---|---|
| Message-ID | <AM6PR0502MB3848FB779DEFCDFCC75654F6BA600@AM6PR0502MB3848.eurprd05.prod.outlook.com> |
Hi, > -----Original Message----- > From: [email protected] <[email protected]> > Sent: Thursday, May 31, 2018 10:44 AM > To: [email protected] > Subject: [PHP-WIN] Utilizing the file cache on PHP 7.2 >=20 > Hello, >=20 >=20 >=20 > I ran into a problem with the file cache with PHP 7.2.6 >=20 > I used to be able to predict the cache path >=20 >=20 >=20 > .e.g >=20 > opcache.file_cache=3DF:\SVN\xxx\5.2\cache >=20 > opcache.file_cache_only=3D1 >=20 >=20 >=20 > That would result in the actual BIN files being stored here: >=20 > F:\SVN\xxx\5.2\cache\cb30f97c420833336c52d76bb38c161\33f5bcdd9882d65b > c27c038 > df49ec706\ >=20 >=20 >=20 > And with PHP 7.1 these would remain the same for every PHP sub version, > regardless of the server it runs on >=20 > Now with PHP 7.2 they will change if I run it on a different server >=20 A couple of versions ago one more path segment has been added. Please check= zend_file_cache_get_bin_file_path() for more info. It affects 7.1, too. Th= us, even exporting the system_id to the PHP land wouldn't give a complete s= olution. Hopefully that helps. I'm not sure one should rely on how the path is put together. The system_id= will be different in every PHP build by version. As it's an internal detai= l, it can change on demand and doesn't affect the user operation. The actua= l change was needed for a bug fix.=20 Regards Anatol=20