mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix LONG_CHECK_VALID_INT in socket extension
This commit is contained in:
parent
52eb52d652
commit
e2d55f2f12
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ inline ssize_t sendmsg(int sockfd, const struct msghdr *msg, int flags)
|
|||
|
||||
#define LONG_CHECK_VALID_INT(l, arg_pos) \
|
||||
do { \
|
||||
if ((l) < INT_MIN && (l) > INT_MAX) { \
|
||||
if ((l) < INT_MIN || (l) > INT_MAX) { \
|
||||
zend_argument_value_error((arg_pos), "must be between %d and %d", INT_MIN, INT_MAX); \
|
||||
RETURN_THROWS(); \
|
||||
} \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue