Re: [PHP-DEV] Re: PHP 7.0 and openssl 1.1

2017-03-28 Thread Remi Collet
Le 24/03/2017 à 20:31, Jakub Zelenka a écrit : > 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 Re

Re: [PHP-DEV] Re: PHP 7.0 and openssl 1.1

2017-03-24 Thread Jakub Zelenka
Hi, On Sun, Mar 12, 2017 at 10:28 PM, Jakub Zelenka wrote: > Hi, > > On Sun, Mar 12, 2017 at 1:49 PM, Remi Collet > 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

Re: [PHP-DEV] Re: PHP 7.0 and openssl 1.1

2017-03-12 Thread Jakub Zelenka
Hi, On Sun, Mar 12, 2017 at 1:49 PM, Remi Collet 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 whic

Re: [PHP-DEV] Re: PHP 7.0 and openssl 1.1

2017-03-12 Thread Remi Collet
>> 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/remire

Re: [PHP-DEV] Re: PHP 7.0 and openssl 1.1

2017-01-24 Thread Jakub Zelenka
On Mon, Jan 23, 2017 at 10:48 AM, Remi Collet wrote: > Le 23/01/2017 à 04:24, Rasmus Lerdorf a écrit : > > Ok, I thought perhaps the changes for just openssl-1.1 api compatibility > > would be easier to separate out, but I guess not. I did have a look at it > > and you are right, while some of th

Re: [PHP-DEV] Re: PHP 7.0 and openssl 1.1

2017-01-23 Thread Rasmus Lerdorf
On Mon, Jan 23, 2017 at 12:52 PM, Alice Wonder wrote: > Actually I found that wasn't the case. To build php against an alternat > openssl API - I did have to rebuild net-snmp but curl, for example, at > least on CentOS uses NSS for it's TLS and so didn't need to be rebuild to > build PHP against

Re: [PHP-DEV] Re: PHP 7.0 and openssl 1.1

2017-01-23 Thread Alice Wonder
Actually I found that wasn't the case. To build php against an alternat openssl API - I did have to rebuild net-snmp but curl, for example, at least on CentOS uses NSS for it's TLS and so didn't need to be rebuild to build PHP against a different OpenSSL API. Building in mock, the only php dep

RE: [PHP-DEV] Re: PHP 7.0 and openssl 1.1

2017-01-23 Thread Anatol Belski
Hi, > -Original Message- > From: Rasmus Lerdorf [mailto:ras...@lerdorf.com] > Sent: Monday, January 23, 2017 4:25 AM > To: Jakub Zelenka > Cc: PHP internals > Subject: [PHP-DEV] Re: PHP 7.0 and openssl 1.1 > > Ok, I thought perhaps the changes for just openssl-1.1 api compatibility woul

Re: [PHP-DEV] Re: PHP 7.0 and openssl 1.1

2017-01-23 Thread Remi Collet
Le 23/01/2017 à 04:24, Rasmus Lerdorf a écrit : > Ok, I thought perhaps the changes for just openssl-1.1 api compatibility > would be easier to separate out, but I guess not. I did have a look at it > and you are right, while some of the changes are trivial, others are more > involved. Fedora 26, a

Re: [PHP-DEV] Re: PHP 7.0 and openssl 1.1

2017-01-23 Thread Rasmus Lerdorf
On Mon, Jan 23, 2017 at 12:31 AM, Alice Wonder wrote: > If someone on such a distro really can't use PHP 7.1.x, LibreSSL can be > installed in parallel to OpenSSL (I do on CentOS) and I suspect php 7.0 > will build against it (5.6.x does and 7.1.x does) > > Also, I suspect older OpenSSL shared li

Re: [PHP-DEV] Re: PHP 7.0 and openssl 1.1

2017-01-23 Thread Alice Wonder
If someone on such a distro really can't use PHP 7.1.x, LibreSSL can be installed in parallel to OpenSSL (I do on CentOS) and I suspect php 7.0 will build against it (5.6.x does and 7.1.x does) Also, I suspect older OpenSSL shared libraries could probably be installed in parallel. So it can