[php-src] PR #18765: mail: fix exit code handling of sendmail cmd

From: Date: Wed, 04 Jun 2025 19:30:06 +0000
Subject: [php-src] PR #18765: mail: fix exit code handling of sendmail cmd
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-31965@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/18765 Author: lollipopman Prior to this commit the return code of the pclose function was assumed to be the exit code of the process. However, the returned value as specified in wait(2) is a bit packed integer and must be interpreted with the provided macros. After this commit we use the macros to obtain the status code and also add some logging on failure. For WIN32 we only check if the return value is non-zero, which should solve, #43327

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