Skip to content

Conversation

@splitbrain
Copy link
Collaborator

This PR does some maintainance work. All changes should be separated into individual commits, so it should be easy to see what was done. Mostly:

  • fix tests and run them automatically again
  • fix minimum php release to reflect the code (though I have not tested with versions < 7.2)

Modern PHP releases do not support old and insecure TLS versions
anymore. In general it's not advised to let end users decide on the TLS
version or hardcode those versions into the library, since these things
change and you run the risk running an outdated version. For example the
code did not support TLS1.3 before this patch, because only 1.2 was
known at the time of writing the original code.

This patch ignores the passed version and will always let PHP pick the
recommended versions.
Travis seems to have been broken for a while anyway.
The code was using short array syntax already, this only makes the
composer file reflect the code requirements.
There should not be an error thrown before our own Exception is thrown.
This is mostly autogenerated for now but should provide a good starting
point for proper testing of the message class.
This should disable certificate validation when allowInsecure is set to
true similar to when SSL connections are used. This is currently
untested.
when running test on github actions, we can not run multiple tests at
the same time or we will run into the mailtrap request limits.
On older php versions you may not pass a null context to
stream_socket_client(). This path creates a empty standard context
instead.

The exception message has been extended to give more detail about the
failed connection.

The commented stream blocking code has been removed. The connection is
opened in blocking mode by default.
@txthinking txthinking merged commit 16e2c48 into master Apr 21, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants