Re: Discussion: Remove file statcache?
| From: | Rowan Tommins [IMSoP] | Date: | Sat, 21 Dec 2024 18:43:21 +0000 |
| Subject: | Re: Discussion: Remove file statcache? | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-126156@lists.php.net to get a copy of this message | ||
On 21 December 2024 16:43:39 GMT, Jakub Zelenka <bukka@php.net> wrote:
>I would prefer to disable it by default but keep some option (INI) to
>re-enable it.
Rather than a global setting, which would make behaviour even more unpredictable in libraries and
out-the-box applications, I wonder if we could make the cache explicit on the functions that use it?
I'm thinking for instance of an extra argument, like:
$perms = fileperms($name, statcache: true);
$size = filesize($name, statcache: true);
I'm not sure if this should default to false straight away, or be introduced gradually somehow,
but it would make the behaviour much more explicit.
Regards,
Rowan Tommins
[IMSoP]