From d1422610e9b17f0c2c9edc8989a4e05cad0a17d5 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 12 Apr 2024 13:43:28 +0200 Subject: [PATCH] Fix PHP 8.4 build error --- tests/Monolog/SignalHandlerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Monolog/SignalHandlerTest.php b/tests/Monolog/SignalHandlerTest.php index 8c28fc147..bc511d08b 100644 --- a/tests/Monolog/SignalHandlerTest.php +++ b/tests/Monolog/SignalHandlerTest.php @@ -34,7 +34,7 @@ protected function setUp(): void $this->asyncSignalHandling = pcntl_async_signals(); } if (function_exists('pcntl_sigprocmask')) { - pcntl_sigprocmask(SIG_BLOCK, array(), $this->blockedSignals); + pcntl_sigprocmask(SIG_SETMASK, array(), $this->blockedSignals); } } } @@ -146,7 +146,7 @@ public function testRegisterDefaultPreviousSignalHandler($signo, $callPrevious, posix_kill(posix_getpid(), $signo); pcntl_signal_dispatch(); // If $callPrevious is true, SIGINT should terminate by this line. - pcntl_sigprocmask(SIG_BLOCK, array(), $oldset); + pcntl_sigprocmask(SIG_SETMASK, array(), $oldset); file_put_contents($path, implode(' ', $oldset), FILE_APPEND); posix_kill(posix_getpid(), $signo); pcntl_signal_dispatch();