-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Open
@EdmondDantes
Description
php-src/main/streams/xp_socket.c
Line 880 in 49fdf49
if (clisock >= 0) {
if (clisock >= 0) {
This condition will never be true on Windows, because the type php_socket_t
is UINT_PTR
, and the value -1
will always be greater than zero.
Correct fix: introduce the INVALID_SOCKET
constant for both platforms.