mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.5'
* PHP-8.5: Fix merge for ext/sockets
This commit is contained in:
@@ -1726,7 +1726,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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user