
Klemen - 2014-11-22 17:51:43
Hello,
Whenever you try to establish a SSL connection in PHP 5.6 with this class it fails. It needs to be updated to work with PHP 5.6.
Reason: the class connects to an IP addresses, but most SSL certificates are issued out to host names (domains), rather than IP addresses
Because PHP 5.6 now verifies SSL certificates, the "fsockopen" function fails in the "ConnectToHost" method due to mismatched certificate CN (expects host name, but IP is given instead).
If all instances of fsockopen are modified to connect to the host name instead of IP address that seems to fix the issue.
Thank you!