diff options
author | Pierrick Charron <pierrick@php.net> | 2012-12-23 15:45:39 -0500 |
---|---|---|
committer | Pierrick Charron <pierrick@php.net> | 2012-12-23 15:45:39 -0500 |
commit | 4b4f3db73142799da71be14d73938456e918b3ac (patch) | |
tree | 3dd3c56065bd96d67d86276ecb63eaf3fd18ea09 /ext/curl/php_curl.h | |
parent | 64595a5d1a51417ae518e124c61e1a9840d221a8 (diff) | |
download | php-git-4b4f3db73142799da71be14d73938456e918b3ac.tar.gz |
Support for curl_strerror and curl_multi_strerror
Add the support for both curl_strerror and curl_multi_strerror.
Those function will return a string describing the error code
passed in the argument errornum
Diffstat (limited to 'ext/curl/php_curl.h')
-rw-r--r-- | ext/curl/php_curl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/curl/php_curl.h b/ext/curl/php_curl.h index d00b431faf..2c97bcaca4 100644 --- a/ext/curl/php_curl.h +++ b/ext/curl/php_curl.h @@ -84,6 +84,11 @@ PHP_FUNCTION(curl_share_close); PHP_FUNCTION(curl_share_init); PHP_FUNCTION(curl_share_setopt); +#if LIBCURL_VERSION_NUM >= 0x070c00 /* 7.12.0 */ +PHP_FUNCTION(curl_strerror); +PHP_FUNCTION(curl_multi_strerror); +#endif + #if LIBCURL_VERSION_NUM >= 0x070c01 /* 7.12.1 */ PHP_FUNCTION(curl_reset); #endif |