cvs: php-src /ext/curl interface.c
| From: | Pierre-Alain Joye | Date: | Mon, 04 May 2009 12:12:40 +0000 |
| Subject: | cvs: php-src /ext/curl interface.c | ||
| Groups: | php.cvs php.doc | ||
| Request: | Send a blank email to php-cvs+get-57491@lists.php.net to get a copy of this message | ||
pajoye Mon May 4 12:12:40 2009 UTC
Modified files:
/php-src/ext/curl interface.c
Log:
- [DOC] #47739. add option CURLOPT_IPRESOLVE which accepts CURL_IPRESOLVE_WHATEVER,
CURL_IPRESOLVE_V4 or CURL_IPRESOLVE_V6
http://cvs.php.net/viewvc.cgi/php-src/ext/curl/interface.c?r1=1.153&r2=1.154&diff_format=u
Index: php-src/ext/curl/interface.c
diff -u php-src/ext/curl/interface.c:1.153 php-src/ext/curl/interface.c:1.154
--- php-src/ext/curl/interface.c:1.153 Sun May 3 21:47:52 2009
+++ php-src/ext/curl/interface.c Mon May 4 12:12:40 2009
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: interface.c,v 1.153 2009/05/03 21:47:52 pajoye Exp $ */
+/* $Id: interface.c,v 1.154 2009/05/04 12:12:40 pajoye Exp $ */
#define ZEND_INCLUDE_FULL_WINDOWS_HEADERS
@@ -443,6 +443,10 @@
le_curl_multi_handle = zend_register_list_destructors_ex(_php_curl_multi_close, NULL,
"curl", module_number);
/* Constants for curl_setopt() */
+ REGISTER_CURL_CONSTANT(CURLOPT_IPRESOLVE);
+ REGISTER_CURL_CONSTANT(CURL_IPRESOLVE_WHATEVER);
+ REGISTER_CURL_CONSTANT(CURL_IPRESOLVE_V4);
+ REGISTER_CURL_CONSTANT(CURL_IPRESOLVE_V6);
REGISTER_CURL_CONSTANT(CURLOPT_DNS_USE_GLOBAL_CACHE);
REGISTER_CURL_CONSTANT(CURLOPT_DNS_CACHE_TIMEOUT);
REGISTER_CURL_CONSTANT(CURLOPT_PORT);
@@ -1525,6 +1529,7 @@
case CURLOPT_REDIR_PROTOCOLS:
case CURLOPT_PROTOCOLS:
#endif
+ case CURLOPT_IPRESOLVE:
convert_to_long_ex(zvalue);
error = curl_easy_setopt(ch->cp, option, Z_LVAL_PP(zvalue));
break;