[php-src] PR #13357: Fix GH-11086: FPM: config test runs twice in daemonised mode
| From: | bukka | Date: | Thu, 08 Feb 2024 16:55:55 +0000 |
| Subject: | [php-src] PR #13357: Fix GH-11086: FPM: config test runs twice in daemonised mode | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25026@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13357
Author: bukka
The previous check for STDERR did not work because it never actually gets
STDERR_FILENO
but new file descriptor which is greater than 2. Unfortunately I did not come up with a better way
than checking the source file name which might not be always reliable and cover all case -
specifically when there is a link to stderr. We could probably check a link (readlink) in such case
and compare but it seems quite unlikely that anyone would use that - we can do it if anyone
complains. I have been also trying isatty but that does not work if FPM is executed by
script (specifically it does not work in our test env).