From: Michael Wallner Date: Tue, 6 Sep 2005 11:47:57 +0000 (+0000) Subject: - all those macros may conflict X-Git-Tag: RELEASE_0_13_0~24 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=b3f63f934af3f17acb719130471ca6caca59e858;ds=sidebyside - all those macros may conflict --- diff --git a/http_request_pool_api.c b/http_request_pool_api.c index 41352b5..282fda9 100644 --- a/http_request_pool_api.c +++ b/http_request_pool_api.c @@ -186,7 +186,11 @@ PHP_HTTP_API STATUS _http_request_pool_send(http_request_pool *pool TSRMLS_DC) fprintf(stderr, "> %d unfinished requests of pool %p remaining\n", pool->unfinished, pool); #endif if (SUCCESS != http_request_pool_select(pool)) { - http_error(HE_WARNING, HTTP_E_SOCKET, "Socket error"); +#ifdef PHP_WIN32 + http_error(HE_WARNING, HTTP_E_SOCKET, WSAGetLastError()); +#else + http_error(HE_WARNING, HTTP_E_SOCKET, strerror(errno)); +#endif return FAILURE; } }