Re: [PHP-DEV] Discussion: Remove file statcache?

2024-12-20 Thread Lynn
On Fri, Dec 20, 2024 at 8:29 PM Larry Garfield wrote: > Background: PHP has a not-often-considered feature, the stat-cache. That > is, the runtime caches the OS stat() call for files, so that subsequent > reads on the same file can be faster. However, it's even less realized > that it's a singl

Re: [PHP-DEV] PHP 8.4.2 Released

2024-12-20 Thread Christoph M. Becker
On 19.12.2024 at 23:12, Morgan wrote: > On 2024-12-20 06:46, Calvin Buckley wrote: >> For source downloads of PHP 8.4.2 please visit our downloads page. >> Windows binaries can be found on the PHP for Windows site. >> The list of changes is recorded in the ChangeLog. > > Interestingly for the Win

Re: [PHP-DEV] Discussion: Remove file statcache?

2024-12-20 Thread Christoph M. Becker
On 20.12.2024 at 20:26, Larry Garfield wrote: > Background: PHP has a not-often-considered feature, the stat-cache. That is, > the runtime caches the OS stat() call for files, so that subsequent reads on > the same file can be faster. However, it's even less realized that it's a > single-file

[PHP-DEV] Discussion: Remove file statcache?

2024-12-20 Thread Larry Garfield
Background: PHP has a not-often-considered feature, the stat-cache. That is, the runtime caches the OS stat() call for files, so that subsequent reads on the same file can be faster. However, it's even less realized that it's a single-file cache. It literally only applies when you try to do t

Re: [PHP-DEV] Discussion: Remove file statcache?

2024-12-20 Thread Calvin Buckley
On Dec 20, 2024, at 3:26 PM, Larry Garfield wrote: > > Background: PHP has a not-often-considered feature, the stat-cache. That is, > the runtime caches the OS stat() call for files, so that subsequent reads on > the same file can be faster. However, it's even less realized that it's a > sin

Re: [PHP-DEV] Discussion: Remove file statcache?

2024-12-20 Thread Jakub Zelenka
Hi, On Fri, Dec 20, 2024 at 10:37 PM Christoph M. Becker wrote: > On 20.12.2024 at 20:26, Larry Garfield wrote: > > > Background: PHP has a not-often-considered feature, the stat-cache. > That is, the runtime caches the OS stat() call for files, so that > subsequent reads on the same file can be

Re: [PHP-DEV] Discussion: Remove file statcache?

2024-12-20 Thread Sebastian Bergmann
Am 20.12.2024 um 20:26 schrieb Larry Garfield: Would you support such a removal? +1 from me. Here is an example of how the stat-cache can lead to interesting situations in testing: https://github.com/sebastianbergmann/phpunit/issues/5996#issuecomment-2422018481

Re: [PHP-DEV] Discussion: Remove file statcache?

2024-12-20 Thread Larry Garfield
On Fri, Dec 20, 2024, at 3:35 PM, Christoph M. Becker wrote: > On 20.12.2024 at 20:26, Larry Garfield wrote: > >> Background: PHP has a not-often-considered feature, the stat-cache. That >> is, the runtime caches the OS stat() call for files, so that subsequent >> reads on the same file can be f