Skip to content

Commit 8887df9

Browse files
committed
UPGRADING
1 parent f28b84a commit 8887df9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

UPGRADING

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,22 @@ PHP 8.4 UPGRADE NOTES
2626
Consult sections 2. New Features and 6. New Functions for a list of
2727
newly implemented methods and constants.
2828

29+
- PCNTL:
30+
. The functions pcntl_sigprocmask(), pcntl_sigwaitinfo() and
31+
pcntl_sigtimedwait() now throw:
32+
- A ValueError if the $signals array is empty (except for
33+
pcntl_sigprocmask() if the $mode is SIG_SETMASK).
34+
- A TypeError if a value of the $signals array is not an integer
35+
- A ValueError if a value of the $signals array is not a valid signal number
36+
Moreover, those functions now always return false on failure.
37+
In some case previously it could return the value -1.
38+
. The function pcntl_sigprocmask() will also now throw:
39+
- A ValueError if $mode is not one of SIG_BLOCK, SIG_UNBLOCK, or SIG_SETMASK
40+
. The function pcntl_sigtimedwait() will also now throw:
41+
- A ValueError if $seconds is less than 0
42+
- A ValueError if $nanoseconds is less than 0 or greater than 1e9
43+
- A ValueError if both $seconds and $nanoseconds are 0
44+
2945
========================================
3046
2. New Features
3147
========================================

0 commit comments

Comments
 (0)