From b6ca14799d2fc987bc1fc8f5eed82486cfaa75d1 Mon Sep 17 00:00:00 2001 From: ndossche <7771979+ndossche@users.noreply.github.com> Date: Sun, 15 Feb 2026 23:28:45 +0100 Subject: [PATCH] Fix merge for ext/sockets --- ext/sockets/sockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index 86b7f046945..0e11280c914 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets.c @@ -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(); }