老师我也是遇到这个问题: Notice: curl_setopt(): 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 in /home/u1025/ace/workspace/php/appcode/webroot/htdocs/mt/php/jssdk.php on line 95 N

秦雨 微信内网页开发工具包(微信JS... 最后由 秦雨 于2017年05月20日回复

  • 1 回答
  • 1.6k 浏览

Notice: curl_setopt(): 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 in /home/u1025/ace/workspace/php/appcode/webroot/htdocs/mt/php/jssdk.php on line 95

Notice: Trying to get property of non-object in /home/u1025/ace/workspace/php/appcode/webroot/htdocs/mt/php/jssdk.php on line 76

Notice: curl_setopt(): 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 in /home/u1025/ace/workspace/php/appcode/webroot/htdocs/mt/php/jssdk.php on line 95

Notice: Trying to get property of non-object in /home/u1025/ace/workspace/php/appcode/webroot/htdocs/mt/php/jssdk.php on line 55

  • 秦雨 2017年05月20日 回答 #1楼
  • 在网上查到的  95行解决:

    curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, true);
    改为
    curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);

    改后还存在问题

    Notice: Trying to get property of non-object in /home/u1025/ace/workspace/php/appcode/webroot/htdocs/mt/php/jssdk.php on line 76

    Notice: Trying to get property of non-object in /home/u1025/ace/workspace/php/appcode/webroot/htdocs/mt/php/jssdk.php on line 55

  • 1 评论