[php-src] PR #20647: Prefer posix_spawn_file_actions_addchdir() over _np variant when available

From: Date: Fri, 05 Dec 2025 12:55:54 +0000
Subject: [php-src] PR #20647: Prefer posix_spawn_file_actions_addchdir() over _np variant when available
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-34216@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/20647 Author: dkulyk On recent macOS SDKs posix_spawn_file_actions_addchdir_np() is declared as deprecated and triggers a -Werror,-Wdeprecated-declarations build failure when compiling ext/standard/proc_open.c. The deprecation notice explicitly recommends using the standardized posix_spawn_file_actions_addchdir() function instead. This patch makes proc_open() prefer the standard POSIX function when it is available, while keeping the existing _np behavior as a fallback.

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