File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,22 @@ PHP 8.4 UPGRADE NOTES
19
19
1. Backward Incompatible Changes
20
20
========================================
21
21
22
+ - PCNTL:
23
+ . The functions pcntl_sigprocmask(), pcntl_sigwaitinfo() and
24
+ pcntl_sigtimedwait() now throw:
25
+ - A ValueError if the $signals array is empty (except for
26
+ pcntl_sigprocmask() if the $mode is SIG_SETMASK).
27
+ - A TypeError if a value of the $signals array is not an integer
28
+ - A ValueError if a value of the $signals array is not a valid signal number
29
+ Moreover, those functions now always return false on failure.
30
+ In some case previously it could return the value -1.
31
+ . The function pcntl_sigprocmask() will also now throw:
32
+ - A ValueError if $mode is not one of SIG_BLOCK, SIG_UNBLOCK, or SIG_SETMASK
33
+ . The function pcntl_sigtimedwait() will also now throw:
34
+ - A ValueError if $seconds is less than 0
35
+ - A ValueError if $nanoseconds is less than 0 or greater than 1e9
36
+ - A ValueError if both $seconds and $nanoseconds are 0
37
+
22
38
========================================
23
39
2. New Features
24
40
========================================
Original file line number Diff line number Diff line change @@ -901,7 +901,7 @@ PHP_FUNCTION(pcntl_sigtimedwait)
901
901
RETURN_THROWS ();
902
902
}
903
903
/* Nanosecond between 0 and 1e9 */
904
- if (tv_nsec < 0 || tv_nsec > 1000000000 ) {
904
+ if (tv_nsec < 0 || tv_nsec >= 1000000000 ) {
905
905
zend_argument_value_error (4 , "must be between 0 and 1e9" );
906
906
RETURN_THROWS ();
907
907
}
You can’t perform that action at this time.
0 commit comments