Skip to content

Commit 1f9ce74

Browse files
committed
Revert to original check with long parameter to unsigned int conversion
1 parent 691fa14 commit 1f9ce74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/sockets/sockets.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2331,7 +2331,7 @@ PHP_FUNCTION(socket_set_option)
23312331

23322332
#if defined(TCP_USER_TIMEOUT)
23332333
case TCP_USER_TIMEOUT: {
2334-
zend_long timeout timeout = zval_get_long(arg4);
2334+
zend_long timeout = zval_get_long(arg4);
23352335

23362336
// TCP_USER_TIMEOUT unsigned int
23372337
if (timeout < 0 || timeout > UINT_MAX) {

0 commit comments

Comments
 (0)