[php-src] PHP-8.4: Merge branch 'PHP-8.3' into PHP-8.4

From: Date: Thu, 29 Oct 2026 09:21:11 +0000
Subject: [php-src] PHP-8.4: Merge branch 'PHP-8.3' into PHP-8.4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-142923@lists.php.net to get a copy of this message
Author: Jakub Zelenka (bukka) Date: 2026-10-29T10:20:59+01:00 Commit: https://github.com/php/php-src/commit/a1b7cffba7359c6909f9548816c6469473d0ac86 Raw diff: https://github.com/php/php-src/commit/a1b7cffba7359c6909f9548816c6469473d0ac86.diff Merge branch 'PHP-8.3' into PHP-8.4 * PHP-8.3: 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, ]);

« previous php.cvs (#142923) next »