[php-src] PR #22607: ext/standard: Fix proc_open() crash on macOS older than the build SDK

From: Date: Sun, 05 Jul 2026 12:44:50 +0000
Subject: [php-src] PR #22607: ext/standard: Fix proc_open() crash on macOS older than the build SDK
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36849@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22607 Author: bukka posix_spawn_file_actions_addchdir() is only available since macOS 26, but the configure link check passes whenever the SDK exports the symbol, so building with the macOS 26 SDK for an older deployment target produces a weakly linked reference that resolves to NULL at runtime and proc_open() crashes when $cwd is used. Pick the variant at runtime via __builtin_available() when the deployment target is older than macOS 26.

« previous php.git-pulls (#36849) next »