We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1b19e7 commit 3e08a78Copy full SHA for 3e08a78
ext/sockets/sockets.c
@@ -1949,7 +1949,7 @@ PHP_FUNCTION(socket_set_option)
1949
/* [...] the unique name of the TCP stack, and should be no longer than
1950
* TCP_FUNCTION_NAME_LEN_MAX-1 characters in length.
1951
* https://github.com/freebsd/freebsd-src/blob/da2c88dfcf4f425e6e0a58d6df3a7c8e88d8df92/share/man/man9/tcp_functions.9#L193C1-L194C50 */
1952
- if (Z_STRLEN_P(arg4) > TCP_FUNCTION_NAME_LEN_MAX) {
+ if (Z_STRLEN_P(arg4) >= TCP_FUNCTION_NAME_LEN_MAX) {
1953
zend_argument_value_error(4, "must be less than %zu bytes when argument #3 ($option) is TCP_FUNCTION_BLK", TCP_FUNCTION_NAME_LEN_MAX);
1954
RETURN_THROWS();
1955
}
0 commit comments