diff --git a/sapi/litespeed/lsapi_main.c b/sapi/litespeed/lsapi_main.c index d095f9ae90e..75dc721240e 100644 --- a/sapi/litespeed/lsapi_main.c +++ b/sapi/litespeed/lsapi_main.c @@ -591,7 +591,7 @@ static int sapi_lsapi_activate(void) static sapi_module_struct lsapi_sapi_module = { "litespeed", - "LiteSpeed V8.2", + "LiteSpeed V8.3", php_lsapi_startup, /* startup */ php_module_shutdown_wrapper, /* shutdown */ diff --git a/sapi/litespeed/lsapilib.c b/sapi/litespeed/lsapilib.c index 9d8408c6133..75e014167f2 100644 --- a/sapi/litespeed/lsapilib.c +++ b/sapi/litespeed/lsapilib.c @@ -635,8 +635,8 @@ static inline int isPipe( int fd ) { char achPeer[128]; socklen_t len = 128; - if (( getpeername( fd, (struct sockaddr *)achPeer, &len ) != 0 )&& - ( errno == ENOTCONN )) + if ((getpeername(fd, (struct sockaddr *)achPeer, &len) != 0 ) + && (errno == ENOTCONN || errno == ENOTSOCK)) return 0; else return 1;