Created
March 1, 2012 21:46
-
-
Save thekid/1953448 to your computer and use it in GitHub Desktop.
PHP Bug 54511 reproduce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| uses('peer.SSLSocket'); | |
| class Bug54511 extends Object { | |
| public static function main(array $args) { | |
| $s= new SSLSocket('smtpb.scig.gov.hk', 465); | |
| $s->connect(); | |
| Console::writeLine('OK: ', $s); | |
| } | |
| } | |
| ?> |
Author
Author
To test the XP framework sockets with stream_socket_client(), you can use https://github.com/thekid/xp-framework/compare/socket-client
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://bugs.php.net/bug.php?id=54511 - the workaround mentioned there isn't correct though, it doesn't actually do an SSL connect.