Skip to content

Commit f97a650

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
2 parents 96e3a9d + e2d55f2 commit f97a650

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/sockets/sendrecvmsg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ inline ssize_t sendmsg(int sockfd, const struct msghdr *msg, int flags)
7272

7373
#define LONG_CHECK_VALID_INT(l, arg_pos) \
7474
do { \
75-
if ((l) < INT_MIN && (l) > INT_MAX) { \
75+
if ((l) < INT_MIN || (l) > INT_MAX) { \
7676
zend_argument_value_error((arg_pos), "must be between %d and %d", INT_MIN, INT_MAX); \
7777
RETURN_THROWS(); \
7878
} \

0 commit comments

Comments
 (0)