Skip to content

Commit

Permalink
Fix PHP 8.4 build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Apr 12, 2024
1 parent 91f225e commit d142261
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Monolog/SignalHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit d142261

Please sign in to comment.