Repository navigation
Conversation
The session file is already opened with O_CLOEXEC, which POSIX.1-2008 requires, so the fcntl() fallback for systems without it is never compiled. Windows has neither, so nothing changes there either.
iliaal
left a comment
There was a problem hiding this comment.
Please keep the fcntl() fallback. Solaris 10 lacks O_CLOEXEC, so removing the fallback lets a child inherit the session file descriptor across exec(). On platforms with O_CLOEXEC, the fallback already compiles out. Oracle documents O_CLOEXEC as a Solaris 11 addition.
|
My reasoning for master: Solaris 10 Extended Support ends in January 2027, before the next PHP release. CI only runs Solaris 11.4, so Solaris 10 isn't tested anyway. Is there a policy on which Solaris versions master supports? Maybe we should change the supported version for Solaris in CI pipeline? Because we are not even sure if it compiles properly. |
|
Hmm learned something new (Solaris eol), I suppose for master it is non-blocker since PHP 8.7 won't come out till later. |
|
This is related to #25659 Do you think @shivammathur that it's good approach to treat CI platform as the minimal we support for Solaris? At least for master. |
|
@jorgsowa Could you try keeping the fcntl() fallback and moving it just after open() succeeds, before flock() can block. |
The session file is already opened with
O_CLOEXEC, whichPOSIX.1-2008requires, so thefcntl()fallback for systems without it is never compiled. Windows has neither, so nothing changes there either.Other places also guard for
O_CLOEXEC, but I want to focus only onext/session.