On 21 December 2024 16:43:39 GMT, Jakub Zelenka <bu...@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]

Reply via email to