File tree 1 file changed +16
-0
lines changed 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,22 @@ PHP 8.4 UPGRADE NOTES
26
26
Consult sections 2. New Features and 6. New Functions for a list of
27
27
newly implemented methods and constants.
28
28
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
+
29
45
========================================
30
46
2. New Features
31
47
========================================
You can’t perform that action at this time.
0 commit comments