summaryrefslogtreecommitdiff
path: root/ext/curl/php_curl.h
diff options
context:
space:
mode:
authorPierrick Charron <pierrick@php.net>2012-12-23 15:45:39 -0500
committerPierrick Charron <pierrick@php.net>2012-12-23 15:45:39 -0500
commit4b4f3db73142799da71be14d73938456e918b3ac (patch)
tree3dd3c56065bd96d67d86276ecb63eaf3fd18ea09 /ext/curl/php_curl.h
parent64595a5d1a51417ae518e124c61e1a9840d221a8 (diff)
downloadphp-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.h5
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