yos-social-php5 icon indicating copy to clipboard operation
yos-social-php5 copied to clipboard

Wrong option for CURLOPT_SSL_VERIFYHOST in YahooCurl.class.php

Open smalyshev opened this issue 11 years ago • 3 comments

In YahooCurl.class.php line 122 there is this code:

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, true);

However, CURLOPT_SSL_VERIFYHOST is actually a numeric option, not boolean, and value of 1 is deprecated by curl and produces error message in modern PHP version. The correct value should be 0 or 2.

smalyshev avatar Jan 10 '14 01:01 smalyshev

i got ssl verify error! so i turned off in code!

shivasurya avatar Dec 09 '15 14:12 shivasurya

seems to be fixed with e4891915

golonzovsky avatar Dec 13 '16 06:12 golonzovsky

yeah fixed! 👍

shivasurya avatar Dec 13 '16 11:12 shivasurya