Skip to content

Add opcache.file_cache_permissions INI setting - #22479

Open
jack-worman wants to merge 1 commit into
php:masterfrom
jack-worman:opcache-file-permission-setting
Open

jack-worman wants to merge 1 commit into
php:masterfrom
jack-worman:opcache-file-permission-setting

Conversation

@jack-worman

@jack-worman jack-worman commented Jun 27, 2026 •

Copy link
Copy Markdown
Contributor

Adds opcache.file_cache_permissions so users who share a group can share and clean up opcache.file_cache entries, which are otherwise created 0600 in 0700 directories. It takes an octal mode from 0600 to 0770; new directories get the same mode plus search permission where the files are readable, and keep an inherited setgid bit. Not available on Windows.

Closes #22226

@jack-worman
jack-worman force-pushed the opcache-file-permission-setting branch 5 times, most recently from ff8b0ad to 8007ecd Compare June 29, 2026 01:46
@jack-worman
jack-worman marked this pull request as ready for review June 29, 2026 13:34
@jack-worman
jack-worman requested a review from dstogov as a code owner June 29, 2026 13:34
opcache.file_cache creates its files 0600 in 0700 directories, so users
sharing a group cannot share or clean up each other's entries. The new
setting takes an octal mode from 0600 to 0770; directories get the same
mode plus search permission where the files are readable.

Closes phpGH-22226
@jack-worman
jack-worman force-pushed the opcache-file-permission-setting branch from 8007ecd to 3085fd3 Compare November 3, 2026 19:22
@jack-worman jack-worman changed the title Opcache file permission setting Add opcache.file_cache_permissions INI setting Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

specify umask for opache.file_cache

1 participant