1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix merge for ext/sockets

This commit is contained in:
ndossche
2026-02-15 23:28:45 +01:00
parent 15163debc5
commit b6ca14799d

View File

@@ -1717,7 +1717,7 @@ PHP_FUNCTION(socket_sendto)
case AF_UNIX:
memset(&s_un, 0, sizeof(s_un));
if (addr_len >= sizeof(s_un.sun_path)) {
if (ZSTR_LEN(addr) >= sizeof(s_un.sun_path)) {
zend_argument_value_error(5, "must be less than %d", sizeof(s_un.sun_path));
RETURN_THROWS();
}