File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -342,14 +342,14 @@ PHPAPI int php_network_connect_socket(php_socket_t sockfd,
342
342
* the select function reports success in the writefds set and failure in
343
343
* the exceptfds set. Indeed, using PHP_POLLREADABLE results in select
344
344
* failing only due to the timeout and not immediately as would be
345
- * exepected when a connection is actively refused. This way,
345
+ * expected when a connection is actively refused. This way,
346
346
* php_pollfd_for will return a mask with POLLOUT if the connection
347
347
* is successful and with POLLPRI otherwise. */
348
348
if ((n = php_pollfd_for (sockfd , POLLOUT |POLLPRI , timeout )) == 0 ) {
349
349
#else
350
350
if ((n = php_pollfd_for (sockfd , PHP_POLLREADABLE |POLLOUT , timeout )) == 0 ) {
351
- error = PHP_TIMEOUT_ERROR_VALUE ;
352
351
#endif
352
+ error = PHP_TIMEOUT_ERROR_VALUE ;
353
353
}
354
354
355
355
if (n > 0 ) {
You can’t perform that action at this time.
0 commit comments