Skip to content

Commit 0375697

Browse files
committed
Merge branch 'PHP-8.5'
* PHP-8.5: Fix merge for ext/sockets
2 parents e7f022b + b6ca147 commit 0375697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/sockets/sockets.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,7 @@ PHP_FUNCTION(socket_sendto)
17261726
case AF_UNIX:
17271727
memset(&s_un, 0, sizeof(s_un));
17281728

1729-
if (addr_len >= sizeof(s_un.sun_path)) {
1729+
if (ZSTR_LEN(addr) >= sizeof(s_un.sun_path)) {
17301730
zend_argument_value_error(5, "must be less than %d", sizeof(s_un.sun_path));
17311731
RETURN_THROWS();
17321732
}

0 commit comments

Comments
 (0)