diff options
author | Pierrick Charron <pierrick@webstart.fr> | 2016-04-27 18:43:41 -0400 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-04-29 14:19:55 +0200 |
commit | 3c92f113e42c5103e3e40c638c40de710c7fb1a1 (patch) | |
tree | d650fcb164e1e63fb809ee81200e44d373e94462 /ext/curl/multi.c | |
parent | 9943c322426ed59ca098ee9a57fc87c42052af56 (diff) | |
download | php-git-3c92f113e42c5103e3e40c638c40de710c7fb1a1.tar.gz |
Expose some of the new curl constants to PHP userspace
Diffstat (limited to 'ext/curl/multi.c')
-rw-r--r-- | ext/curl/multi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/curl/multi.c b/ext/curl/multi.c index 641d20f903..ab6d56c438 100644 --- a/ext/curl/multi.c +++ b/ext/curl/multi.c @@ -417,6 +417,13 @@ static int _php_curl_multi_setopt(php_curlm *mh, zend_long option, zval *zvalue, #if LIBCURL_VERSION_NUM >= 0x071003 /* 7.16.3 */ case CURLMOPT_MAXCONNECTS: #endif +#if LIBCURL_VERSION_NUM >= 0x071e00 /* 7.30.0 */ + case CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE: + case CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE: + case CURLMOPT_MAX_HOST_CONNECTIONS: + case CURLMOPT_MAX_PIPELINE_LENGTH: + case CURLMOPT_MAX_TOTAL_CONNECTIONS: +#endif error = curl_multi_setopt(mh->multi, option, zval_get_long(zvalue)); break; |