[php-src] PHP-8.4: Fix flaky FPM log-bwd-multiple-msgs-stdout-stderr test and remove XFAIL (#24998)

From: Date: Wed, 28 Oct 2026 12:23:26 +0000
Subject: [php-src] PHP-8.4: Fix flaky FPM log-bwd-multiple-msgs-stdout-stderr test and remove XFAIL (#24998)
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-142885@lists.php.net to get a copy of this message
Author: Jakub Zelenka (bukka) Committer: GitHub (web-flow) Pusher: bukka Date: 2026-10-28T13:23:22+01:00 Commit: https://github.com/php/php-src/commit/e31cab6aacba72bd35484933e54a8cfb3ea99ba8 Raw diff: https://github.com/php/php-src/commit/e31cab6aacba72bd35484933e54a8cfb3ea99ba8.diff Fix flaky FPM log-bwd-multiple-msgs-stdout-stderr test and remove XFAIL (#24998) The end of request flush command is written only to the stderr pipe so a stdout message without a trailing newline is terminated only when the master sees the switch to stderr. If the master is not scheduled between the two requests (slow CI), it reads both stdout chunks at once and logs them as a single "msg 1 - msg 1 - " line which made the test fail. Check the log lines after each request so the master always drains the pipes before the next request is sent. This also verifies the output of the second request which was previously not checked. Changed paths: M sapi/fpm/tests/log-bwd-multiple-msgs-stdout-stderr.phpt Diff: diff --git a/sapi/fpm/tests/log-bwd-multiple-msgs-stdout-stderr.phpt b/sapi/fpm/tests/log-bwd-multiple-msgs-stdout-stderr.phpt index 4a8fbf3a56e2..b4ff793b9f3a 100644 --- a/sapi/fpm/tests/log-bwd-multiple-msgs-stdout-stderr.phpt +++ b/sapi/fpm/tests/log-bwd-multiple-msgs-stdout-stderr.phpt @@ -2,8 +2,6 @@ FPM: Buffered worker output decorated log with multiple continuous messages (stdout/stderr mixed) --SKIPIF-- <?php include "skipif.inc"; ?> ---XFAIL-- -Fails intermittently --FILE-- <?php @@ -34,7 +32,10 @@ EOT; $tester = new FPM\Tester($cfg, $code); $tester->start(); $tester->expectLogStartNotices(); +// Check logs after each request so a slow master cannot merge the stdout msgs. $tester->request()->expectEmptyBody(); +$tester->expectLogLine('msg 1 - ', false); +$tester->expectLogLine('msg 2 - msg 3', true); $tester->request()->expectEmptyBody(); $tester->expectLogLine('msg 1 - ', false); $tester->expectLogLine('msg 2 - msg 3', true);

« previous php.cvs (#142885) next »