[php-src] master: Merge branch 'PHP-8.6'
| From: | Jakub Zelenka | Date: | Thu, 29 Oct 2026 09:22:58 +0000 |
| Subject: | [php-src] master: Merge branch 'PHP-8.6' | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-142926@lists.php.net to get a copy of this message | ||
Author: Jakub Zelenka (bukka)
Date: 2026-10-29T10:22:41+01:00
Commit: https://github.com/php/php-src/commit/7f0c322608a5edde66409d7bde62c006eed4994d
Raw diff: https://github.com/php/php-src/commit/7f0c322608a5edde66409d7bde62c006eed4994d.diff
Merge branch 'PHP-8.6'
* PHP-8.6:
Fix flaky FPM test for bug #77023 (#24999)
Changed paths:
M sapi/fpm/tests/bug77023-pm-dynamic-blocking-sigquit.phpt
Diff:
diff --git a/sapi/fpm/tests/bug77023-pm-dynamic-blocking-sigquit.phpt
b/sapi/fpm/tests/bug77023-pm-dynamic-blocking-sigquit.phpt
index b20d55875034..56fbffc3f9c7 100644
--- a/sapi/fpm/tests/bug77023-pm-dynamic-blocking-sigquit.phpt
+++ b/sapi/fpm/tests/bug77023-pm-dynamic-blocking-sigquit.phpt
@@ -2,7 +2,6 @@
FPM: Blocked SIGQUIT prevents idle process to be killed
--EXTENSIONS--
pcntl
---FLAKY--
--SKIPIF--
<?php
include "skipif.inc";
@@ -32,23 +31,30 @@ EOT;
$code = <<<EOT
<?php
pcntl_sigprocmask(SIG_BLOCK, [SIGQUIT, SIGTERM]);
-usleep(300000);
+usleep(2000000);
EOT;
-
$tester = new FPM\Tester($cfg, $code);
$tester->start(extensions: ['pcntl']);
$tester->expectLogStartNotices();
-$tester->multiRequest(2);
+$tester->request()->expectEmptyBody();
$tester->status([
'total processes' => 2,
]);
-// wait for process to be killed
-sleep(7);
-$tester->expectLogWarning('child \\d+ exited on signal 9 \\(SIGKILL\\) after \\d+.\\d+
seconds from start', 'unconfined');
-$tester->expectLogNotice('child \\d+ started', 'unconfined');
-$tester->expectLogWarning('child \\d+ exited on signal 9 \\(SIGKILL\\) after \\d+.\\d+
seconds from start', 'unconfined');
+$tester->expectLogWarning(
+ 'child \\d+ exited on signal 9 \\(SIGKILL\\) after \\d+.\\d+ seconds from start',
+ 'unconfined',
+ timeoutSeconds: 10
+);
$tester->expectLogNotice('child \\d+ started', 'unconfined');
+// wait for the remaining spare process to be quit
+for ($i = 0; $i < 20; $i++) {
+ $status = json_decode($tester->request('json', [],
'/status')->getBody('application/json'), true);
+ if (($status['total processes'] ?? null) === 1) {
+ break;
+ }
+ usleep(500000);
+}
$tester->status([
'total processes' => 1,
]);