Req #28790 [Com]: Add php.ini option to disable stat cache
| From: | rtrtrtrtrt at dfdfdfdf dot dfd | Date: | Fri, 18 Dec 2020 13:45:25 +0000 |
| Subject: | Req #28790 [Com]: Add php.ini option to disable stat cache | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-231156@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=28790&edit=1
ID: 28790
Comment by: rtrtrtrtrt at dfdfdfdf dot dfd
Reported by: jnoll at prim dot hu
Summary: Add php.ini option to disable stat cache
Status: Open
Type: Feature/Change Request
Package: *General Issues
Operating System: *
PHP Version: *
Block user comment: N
Private report: N
New Comment:
well, can you also *stop now* disable the stat cache just because open_basedir is configured and let
that decide the admin without forcing him to patch php-src
Previous Comments:
------------------------------------------------------------------------
[2020-12-18 13:39:33] cmb@php.net
The following pull request has been associated:
Patch Name: Feature Request #28790 Add php.ini option to disable stat cache
On GitHub: https://github.com/php/php-src/pull/5894
Patch: https://github.com/php/php-src/pull/5894.patch
------------------------------------------------------------------------
[2020-07-25 21:02:43] kevin at lyda dot ie
I've created a PR to do this. I don't know if the people who have participated in this bug
to date get emails on updates to this bug, but if you do and have thoughts on the PR I'd be
interested.
https://github.com/php/php-src/pull/5894
------------------------------------------------------------------------
[2020-07-25 09:37:43] kevin at lyda dot ie
Can this please be disabled. Modern operating systems have their own stat cache that is properly
maintained. A cache on these systems reduces performance *and* causes subtle and frustrating errors.
------------------------------------------------------------------------
[2017-03-09 11:23:52] nikic@php.net
The stat cache is cleared between requests. What you have in mind is the realpath cache.
------------------------------------------------------------------------
[2017-03-08 21:53:08] spam2 at rhsoft dot net
> You guys realize that the stat cache is per-request
nonsense - it's per prcoess and "You only need to clear the stat cache before a
file_exists() call" is bullshit, you should be able to clear it *after* change a file but you
just paly lotterly for which request in the future clearstatcache() has any effect or was just a
joke
https://bugs.php.net/bug.php?id=73888 is a
deisgn error wihich makes a) the cache mostly usesless and b) clearstatcache() to a lottery game
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=28790
--
Edit this bug report at https://bugs.php.net/bug.php?id=28790&edit=1