We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e7f022b + b6ca147 commit 0375697Copy full SHA for 0375697
1 file changed
ext/sockets/sockets.c
@@ -1726,7 +1726,7 @@ PHP_FUNCTION(socket_sendto)
1726
case AF_UNIX:
1727
memset(&s_un, 0, sizeof(s_un));
1728
1729
- if (addr_len >= sizeof(s_un.sun_path)) {
+ if (ZSTR_LEN(addr) >= sizeof(s_un.sun_path)) {
1730
zend_argument_value_error(5, "must be less than %d", sizeof(s_un.sun_path));
1731
RETURN_THROWS();
1732
}
0 commit comments