- Make code compatible with PHP 5.2
- Fix bug where the connection tried to use TLS even though it shouldn’t
- Switch to stream API vs sockets since sockets don’t seem to be installed typically and the stream API is core.
- Allow self signed certificates with socket connections
- Don’t check peer name with socket connections, many hosting companies aren’t configured correctly