Fix macOS posix_spawn_file_actions_addchdir availability handling#21722
Open
arshidkv12 wants to merge 6 commits intophp:masterfrom
Open
Fix macOS posix_spawn_file_actions_addchdir availability handling#21722arshidkv12 wants to merge 6 commits intophp:masterfrom
arshidkv12 wants to merge 6 commits intophp:masterfrom
Conversation
ext/standard/proc_open.c
Outdated
| /* The non-_np variant is in macOS 26 (and _np deprecated) */ | ||
| #ifdef HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR | ||
| #define POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR posix_spawn_file_actions_addchdir | ||
| static inline int php_spawn_addchdir( |
Member
There was a problem hiding this comment.
I think this might be able to be simplified by checking __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__/__ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ instead, since we don't need any real runtime differences, it's just a symbol name, and the old one is unlikely to go away right now even if it's deprecated. It should respect -mmacosx-version-min as well.
Member
|
Still triggers the deprecation on 26; I think you need the |
NattyNarwhal
approved these changes
Apr 13, 2026
Member
|
Builds with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#21720