Skip to content

ext/session: remove dead !O_NOFOLLOW fallback - #24291

Merged
jorgsowa merged 1 commit into
php:masterfrom
jorgsowa:session-remove-o-nofollow-guard
Oct 13, 2026
Merged

jorgsowa merged 1 commit into
php:masterfrom
jorgsowa:session-remove-o-nofollow-guard

Conversation

@jorgsowa

Copy link
Copy Markdown
Contributor

O_NOFOLLOW is available on all supported POSIX platforms (POSIX.1-2008),
and on Windows it is already defined to 0 at the top of mod_files.c.
The lstat()/open_basedir fallback branch was therefore never compiled,
so remove it and simplify the sbuf guard to !PHP_WIN32.

@jorgsowa jorgsowa self-assigned this Oct 13, 2026
@jorgsowa
jorgsowa requested a review from Girgias as a code owner October 13, 2026 10:00
@jorgsowa
jorgsowa merged commit 59b790a into php:master Oct 13, 2026
18 checks passed
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.

2 participants