-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP 5.6 - LibSSL 1.1 compatibility #566
Comments
Applied, thanks. |
@zsalab thanks for the patch. I just upgraded to Debian 9 Stretch, but for 1 site and FreePBX I still need PHP 5.6. Unfortunately the patch doesn't apply (1 failed hunk) on PHP 5.6.31, but it works on PHP 5.6.30. Am I missing something? Is there a more recent patch for PHP 5.6.31? |
This is the location of up-to-date patch for latest PHP 5.6 release. |
@oerdnj thank you very much. Up & running! 👍🏻 |
I improved my patch a bit, to support the different Debian versions http://zettasystem.com/PHP-5.6.31-OpenSSL-1.1.0-compatibility-20170801.patch Probably the PHP developers wont accept the pull request but I created one So vote for it if you want to use PHP 5.6 with OpenSSL 1.0 |
A smooth and working build on:
Thanks again! |
Sorry for my ignorance, but how do I apply this patch? |
@joseErico
|
@zsalab Worked perfectly. |
Borrowed from: oerdnj/deb.sury.org#566 (comment)
And many other packages needed version bumps or patches. Possibly a strongswan bump to 5.6.3 later, but the current 5.5.3 works. Warning: Many changes, needs testing, not production ready ... yet. Special thanks to 'oerdnj' for PHP 5.6-OpenSSL-1.1.0-compatibility Ref: oerdnj/deb.sury.org#566
Modified patch linked below, this new patch does not try to backport the 7.1 openssl module it is the improved version of the 5.6 original openssl module.
Related issues: #523 #555
`
Test result on Jessie:
TEST RESULT SUMMARY
Exts skipped : 0
Exts tested : 34
Number of tests : 100 97
Tests skipped : 3 ( 3.0%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 0 ( 0.0%) ( 0.0%)
Expected fail : 0 ( 0.0%) ( 0.0%)
Tests passed : 97 ( 97.0%) (100.0%)
Time taken : 37 seconds
Addition test based on issue #555
php /tmp/ssltest.php 0123456789ABCDEF
string(16) "0123456789ABCDEF"
string(44) "bENRlpIGWuwr8Dcr6JGsAMX+HN03lM3dtrkICOIPYlA="
string(16) "0123456789ABCDEF"
php /tmp/ssltest.php 0123456789ABCDEFGHIJKLMNOPQRS
string(29) "0123456789ABCDEFGHIJKLMNOPQRS"
string(44) "bENRlpIGWuwr8Dcr6JGsAKDz9TdPKcTfweZ8oQtKDqk="
string(29) "0123456789ABCDEFGHIJKLMNOPQRS"
`
Stretch notes: SNI maybe not supported yet (under investigation, I will provide new patch soon as possible), all other functionality restored even the problem discovered in #555 issue.
Failed tests on Stretch: sni_server, stream_verify_peer_name
The sni_server test fails on my build system even with the newest 7.1 untouched PHP
Patch available:
https://zettasystem.com/php-5.6-libssl-1.1-compatibility-20170309.patch
All contributions welcome!
The text was updated successfully, but these errors were encountered: