1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 08:28:26 +02:00

Finish ext/curl (7 tests fails as trunk)

This commit is contained in:
Xinchen Hui
2014-05-09 14:58:07 +08:00
parent f4c105dc7d
commit 1071bf74cf
+2 -2
View File
@@ -1993,8 +1993,8 @@ static int _php_curl_setopt(php_curl *ch, long option, zval *zvalue TSRMLS_DC) /
switch (option) {
/* Long options */
case CURLOPT_SSL_VERIFYHOST:
convert_to_boolean(zvalue);
if (Z_TYPE_P(zvalue) == IS_TRUE) {
convert_to_long(zvalue);
if (Z_LVAL_P(zvalue) == 1) {
#if LIBCURL_VERSION_NUM <= 0x071c00 /* 7.28.0 */
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "CURLOPT_SSL_VERIFYHOST with value 1 is deprecated and will be removed as of libcurl 7.28.1. It is recommended to use value 2 instead");
#else