On 21/12/2024 19:43, Rowan Tommins [IMSoP] wrote:
> 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);

In my opinion, this will become very messy.

> 
> 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.

Changing a default would be another BC break.

> 
> Regards, 
> Rowan Tommins
> [IMSoP]

Kind regards
Niels

Reply via email to