Skip to content

Instantly share code, notes, and snippets.

@thekid
Created March 1, 2012 21:46
Show Gist options
  • Select an option

  • Save thekid/1953448 to your computer and use it in GitHub Desktop.

Select an option

Save thekid/1953448 to your computer and use it in GitHub Desktop.
PHP Bug 54511 reproduce
<?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);
}
}
?>
@thekid
Copy link
Author

thekid commented Mar 1, 2012

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.

@thekid
Copy link
Author

thekid commented Mar 1, 2012

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