mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-7.0'
* PHP-7.0: Adds new curl option CURLOPT_SSL_VERIFYSTATUS to enable OCSP verification Add test for bug #72028
This commit is contained in:
commit
e015faaf8f
2 changed files with 58 additions and 0 deletions
|
@ -719,6 +719,9 @@ PHP_MINIT_FUNCTION(curl)
|
|||
REGISTER_CURL_CONSTANT(CURLOPT_SSL_CIPHER_LIST);
|
||||
REGISTER_CURL_CONSTANT(CURLOPT_SSL_VERIFYHOST);
|
||||
REGISTER_CURL_CONSTANT(CURLOPT_SSL_VERIFYPEER);
|
||||
#if LIBCURL_VERSION_NUM >= 0x072900 /* 7.41.0 */
|
||||
REGISTER_CURL_CONSTANT(CURLOPT_SSL_VERIFYSTATUS);
|
||||
#endif
|
||||
REGISTER_CURL_CONSTANT(CURLOPT_STDERR);
|
||||
REGISTER_CURL_CONSTANT(CURLOPT_TELNETOPTIONS);
|
||||
REGISTER_CURL_CONSTANT(CURLOPT_TIMECONDITION);
|
||||
|
@ -2066,6 +2069,9 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue) /* {{{
|
|||
case CURLOPT_RESUME_FROM:
|
||||
case CURLOPT_SSLVERSION:
|
||||
case CURLOPT_SSL_VERIFYPEER:
|
||||
#if LIBCURL_VERSION_NUM >= 0x072900 /* 7.41.0 */
|
||||
case CURLOPT_SSL_VERIFYSTATUS:
|
||||
#endif
|
||||
case CURLOPT_TIMECONDITION:
|
||||
case CURLOPT_TIMEOUT:
|
||||
case CURLOPT_TIMEVALUE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue