после обновления PHP на новую 7 версию функция fsockopen при обращению к сайту https может вызывать ошибки:
Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in C:\Users\Public\Apache24\htdocs\index.php on line 9
Warning: fsockopen(): Failed to enable crypto in C:\Users\Public\Apache24\htdocs\index.php on line 9
Warning: fsockopen(): unable to connect to tls://gmail.com:443 (Unknown error) in C:\Users\Public\Apache24\htdocs\index.php on line 9
Как пофиксить ошибку?
Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in C:\Users\Public\Apache24\htdocs\index.php on line 9
Warning: fsockopen(): Failed to enable crypto in C:\Users\Public\Apache24\htdocs\index.php on line 9
Warning: fsockopen(): unable to connect to tls://gmail.com:443 (Unknown error) in C:\Users\Public\Apache24\htdocs\index.php on line 9
Как пофиксить ошибку?