[php-src] PHP-8.4: Fix GH-24695: FPM tester sends signal to process group when PID is missing (#24698)
| From: | Lazizbek Ergashev via GitHub | Date: | Tue, 27 Oct 2026 09:12:09 +0000 |
| Subject: | [php-src] PHP-8.4: Fix GH-24695: FPM tester sends signal to process group when PID is missing (#24698) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-142780@lists.php.net to get a copy of this message | ||
Author: Lazizbek Ergashev (lazerg)
Committer: GitHub (web-flow)
Pusher: bukka
Date: 2026-10-27T10:12:06+01:00
Commit: https://github.com/php/php-src/commit/810ce5e5f6e4bc64a01f998e30fd4c9418289e2c
Raw diff: https://github.com/php/php-src/commit/810ce5e5f6e4bc64a01f998e30fd4c9418289e2c.diff
Fix GH-24695: FPM tester sends signal to process group when PID is missing (#24698)
When FPM fails to start, getPid() reports the missing PID file and
returns 0, and signal() then runs kill -USR2 0. That signals the whole
process group and takes down run-tests.php along with the test. Now
signal() returns early in that case, so the test just fails and the run
keeps going.
Co-authored-by: Bill Sommerfeld <sommerfeld@hamachi.org>
Changed paths:
M sapi/fpm/tests/tester.inc
Diff:
diff --git a/sapi/fpm/tests/tester.inc b/sapi/fpm/tests/tester.inc
index 8e67d17430a6..c98252292489 100644
--- a/sapi/fpm/tests/tester.inc
+++ b/sapi/fpm/tests/tester.inc
@@ -1119,6 +1119,9 @@ class Tester
{
if (is_null($pid)) {
$pid = $this->getPid();
+ if ($pid === 0) {
+ return '';
+ }
}
$cmd = "kill -$signal $pid";
$this->trace('Sending signal using command', $cmd, true);