Source

pecl-event / src / util.c

Diff from to

File src/util.c

 #ifndef PHP_WIN32
 	if (file_desc >= 0 && fcntl(file_desc, F_GETFD) == -1) {
 #else
-	if (file_desc == INVALID_HANDLE_VALUE) {
+	if (file_desc == INVALID_SOCKET) {
 #endif
 		php_error_docref(NULL TSRMLS_CC, E_WARNING, "fcntl: invalid file descriptor passed");
 		return -1;