]> granicus.if.org Git - php/commitdiff
Finish ext/curl (7 tests fails as trunk)
authorXinchen Hui <laruence@php.net>
Fri, 9 May 2014 06:58:07 +0000 (14:58 +0800)
committerXinchen Hui <laruence@php.net>
Fri, 9 May 2014 06:58:07 +0000 (14:58 +0800)
ext/curl/interface.c

index 5f4c3d017c5a1116c4fc861477684444cf327f19..5ba77972805ce3f39f34eeddcc59b7ad384f86c1 100644 (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