Re: Re: PHP 7.0 and openssl 1.1
| From: | Jakub Zelenka | Date: | Fri, 24 Mar 2017 19:31:38 +0000 |
| Subject: | Re: Re: PHP 7.0 and openssl 1.1 | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-98625@lists.php.net to get a copy of this message | ||
Hi,
On Sun, Mar 12, 2017 at 10:28 PM, Jakub Zelenka <bukka@php.net> wrote:
> Hi,
>
> On Sun, Mar 12, 2017 at 1:49 PM, Remi Collet <remi@fedoraproject.org>
> wrote:
>
>> >> But as said by Rasmus, there is tons of extensions and libraries linked
>> >> against openssl, and having both versions loaded in the same process
>> can
>> >> only be a huge mess, and raise terrible issues.
>>
>> Here is a minimal patch which seems ok (test suite passes)
>>
>>
>> https://github.com/remicollet/remirepo/blob/master/scl-php70
>> /php/php-7.0.17-openssl11.patch
>>
>> If it may helps some other dev, which need to build 7.0 on a recent
>> distro...
>>
>>
After thinking about it and considering that distros patching the 7.0
openssl ext just for the OpenSSL 1.1 support, I started working on the
complete patch for 7.0 only. I wanted to initially start with the above one
but after I get it from Remi's history (the link above doesn't work), I
noticed that there are lots of missing bits and it doesn't even apply. So I
started from scratch - backported the related stuff from 7.1 and port old
openssl_(en|de)crypt. It's only in openssl.c for now. I haven't tested it
yet with OpenSSL 1.1 (which I will doing later) but it works with 1.0.2.
It's still a WIP but wanted to give you an update so you know that the work
is in progress. You can see all changes in here:
https://github.com/php/php-src/compare/PHP-7.0...bukka:openssl_1_1_for_7_0
Cheers
Jakub