File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2073,7 +2073,7 @@ zend_result php_module_startup(sapi_module_struct *sf, zend_module_entry *additi
2073
2073
zend_module_entry * module ;
2074
2074
2075
2075
#ifdef PHP_WIN32
2076
- WORD wVersionRequested = MAKEWORD (2 , 0 );
2076
+ WORD wVersionRequested = MAKEWORD (2 , 2 );
2077
2077
WSADATA wsaData ;
2078
2078
2079
2079
old_invalid_parameter_handler =
@@ -2162,6 +2162,12 @@ zend_result php_module_startup(sapi_module_struct *sf, zend_module_entry *additi
2162
2162
fprintf (stderr , "\nwinsock.dll unusable. %d\n" , WSAGetLastError ());
2163
2163
return FAILURE ;
2164
2164
}
2165
+
2166
+ if (UNEXPECTED (HIBYTE (wsaData .wVersion ) != 2 )) {
2167
+ fprintf (stderr , "\nversion not found in winsock.dll. %d\n" , WSAGetLastError ());
2168
+ WSACleanup ();
2169
+ return FAILURE ;
2170
+ }
2165
2171
php_win32_signal_ctrl_handler_init ();
2166
2172
#endif
2167
2173
You can’t perform that action at this time.
0 commit comments