X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=php_http_client_curl.c;h=4033b9f56c5c0c61a36b19ae4475d5e9edb50f19;hb=d6975fac1d5c88362e9ce625e9b5248e23b3cfb1;hp=3b96cf4dfab60410234046f926b8dcb3efac3711;hpb=71404a21e0937944e47a760e8736905c75f903ea;p=m6w6%2Fext-http diff --git a/php_http_client_curl.c b/php_http_client_curl.c index 3b96cf4..4033b9f 100644 --- a/php_http_client_curl.c +++ b/php_http_client_curl.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2013, Michael Wallner | + | Copyright (c) 2004-2014, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -1807,7 +1807,7 @@ static STATUS php_http_client_curl_exec(php_http_client_t *h) /* see http://msdn.microsoft.com/library/en-us/winsock/winsock/windows_sockets_error_codes_2.asp */ php_error_docref(NULL TSRMLS_CC, E_WARNING, "WinSock error: %d", WSAGetLastError()); #else - php_error_docref(NULL TSRMLS_CC, E_WARNING, strerror(errno)); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", strerror(errno)); #endif return FAILURE; }