Skip to content

Commit 1071bf7

Browse files
committed
Finish ext/curl (7 tests fails as trunk)
1 parent f4c105d commit 1071bf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/curl/interface.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1993,8 +1993,8 @@ static int _php_curl_setopt(php_curl *ch, long option, zval *zvalue TSRMLS_DC) /
19931993
switch (option) {
19941994
/* Long options */
19951995
case CURLOPT_SSL_VERIFYHOST:
1996-
convert_to_boolean(zvalue);
1997-
if (Z_TYPE_P(zvalue) == IS_TRUE) {
1996+
convert_to_long(zvalue);
1997+
if (Z_LVAL_P(zvalue) == 1) {
19981998
#if LIBCURL_VERSION_NUM <= 0x071c00 /* 7.28.0 */
19991999
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");
20002000
#else

0 commit comments

Comments
 (0)