Re: Discussion: Remove file statcache?
| From: | Niels Dossche | Date: | Sat, 21 Dec 2024 18:49:46 +0000 |
| Subject: | Re: Discussion: Remove file statcache? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-126157@lists.php.net to get a copy of this message | ||
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