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 e13d106 commit 9eaac69Copy full SHA for 9eaac69
ext/sockets/sockets.c
@@ -2086,7 +2086,7 @@ PHP_FUNCTION(socket_set_option)
2086
RETURN_THROWS();
2087
}
2088
struct accept_filter_arg af = {0};
2089
- if (Z_STRLEN_P(arg4) > sizeof(af.af_name)) {
+ if (Z_STRLEN_P(arg4) >= sizeof(af.af_name)) {
2090
zend_argument_value_error(4, "must be less than %zu bytes when argument #3 ($option) is SO_ACCEPTFILTER", sizeof(af.af_name));
2091
2092
0 commit comments