[PHP-DEV] Use-case for `use`ing the same trait multiple times in the same class?

2017-12-04 Thread Levi Morrison
Currently we permit the same trait to be `use`d multiple times in a class: ```php trait T { } class C { use T; use T; } ``` In this example it works because T doesn't have any methods. If you add methods it won't because they will conflict: ```php trait T { function get() {} } ``` > Trai

Re: [PHP-DEV] PHP 7.2.0 Released

2017-12-04 Thread Sara Golemon
On Fri, Dec 1, 2017 at 6:35 PM, li...@rhsoft.net wrote: > the main question is why does PHP need to to *anything* here instead hand > the TLS handshake completly over to openssl? in that case even PHP5 could > perfer TLS1.2 ciphers against a sevrer that orders them on top without touch > any line

Re: [PHP-DEV] PHP 7.2.0 Released

2017-12-04 Thread li...@rhsoft.net
Am 04.12.2017 um 18:36 schrieb Sara Golemon: On Fri, Dec 1, 2017 at 6:35 PM, li...@rhsoft.net wrote: the main question is why does PHP need to to *anything* here instead hand the TLS handshake completly over to openssl? in that case even PHP5 could perfer TLS1.2 ciphers against a sevrer that

Re: [PHP-DEV] PHP 7.2.0 Released

2017-12-04 Thread li...@rhsoft.net
and to be clear here: a client when connecting to a server configured like below has to respect the cipher order of the server while https://www.ssllabs.com/ssltest/ exists for years to give dministrators of the server some help and which clients are using which cipher [harry@srv-rhsoft:~]$ o

Re: [PHP-DEV] PHP 7.2.0 Released

2017-12-04 Thread Sara Golemon
On Mon, Dec 4, 2017 at 1:18 PM, li...@rhsoft.net wrote: > Am 04.12.2017 um 18:36 schrieb Sara Golemon: >> On Fri, Dec 1, 2017 at 6:35 PM, li...@rhsoft.net wrote: >>> >>> the main question is why does PHP need to to *anything* here instead hand >>> the TLS handshake completly over to openssl? in t

Re: [PHP-DEV] Use-case for `use`ing the same trait multiple times in the same class?

2017-12-04 Thread Rowan Collins
On 4 December 2017 17:26:12 GMT+00:00, Levi Morrison wrote: > Using `T::get as get2` still conflicts because that >*aliases* even though most literature says it renames. Funnily enough, I was just recently wondering why exactly that was, and couldn't find much of an answer. The RFC rather vaguel

Re: [PHP-DEV] PHP 7.2.0 Released

2017-12-04 Thread Jakub Zelenka
On Mon, Dec 4, 2017 at 5:36 PM, Sara Golemon wrote: > On Fri, Dec 1, 2017 at 6:35 PM, li...@rhsoft.net wrote: > > the main question is why does PHP need to to *anything* here instead hand > > the TLS handshake completly over to openssl? in that case even PHP5 could > > perfer TLS1.2 ciphers agai

Re: [PHP-DEV] PHP 7.2.0 Released

2017-12-04 Thread Niklas Keller
> > and to be clear here: > > a client when connecting to a server configured like below has to respect > the cipher order of the server while > https://www.ssllabs.com/ssltest/ exists for years to give dministrators > of the server some help and which clients are using which cipher > Just minor n

Re: [PHP-DEV] PHP 7.2.0 Released

2017-12-04 Thread Walter Parker
On Mon, Dec 4, 2017 at 1:43 PM, Niklas Keller wrote: > > > > and to be clear here: > > > > a client when connecting to a server configured like below has to respect > > the cipher order of the server while > > https://www.ssllabs.com/ssltest/ exists for years to give dministrators > > of the serv

Re: [PHP-DEV] PHP 7.2.0 Released

2017-12-04 Thread li...@rhsoft.net
Am 04.12.2017 um 22:53 schrieb Walter Parker: On Mon, Dec 4, 2017 at 1:43 PM, Niklas Keller wrote: and to be clear here: a client when connecting to a server configured like below has to respect the cipher order of the server while https://www.ssllabs.com/ssltest/ exists for years to give dm

Re: [PHP-DEV] PHP 7.2.0 Released

2017-12-04 Thread Walter Parker
On Mon, Dec 4, 2017 at 2:21 PM, li...@rhsoft.net wrote: > > > Am 04.12.2017 um 22:53 schrieb Walter Parker: > >> On Mon, Dec 4, 2017 at 1:43 PM, Niklas Keller wrote: >> >>> and to be clear here: a client when connecting to a server configured like below has to respect the cip

Re: [PHP-DEV] PHP 7.2.0 Released

2017-12-04 Thread li...@rhsoft.net
Am 05.12.2017 um 01:19 schrieb Walter Parker: Oh, I see, this not about the actual change (the protocol version). This is about when using PHP on the client side, it does not support all/enough of the modern cipher suite list. Now that we have identified the problem in question, this should

[PHP-DEV] PHP 7.2 and bcmod()

2017-12-04 Thread Sebastian Bergmann
http://git.php.net/?p=php-src.git;a=blob_plain;f=UPGRADING;hb=refs/heads/PHP-7.2 has this to say on bcmod(): > The bcmod() function no longer truncates fractional numbers > to integers. As such, its behavior now follows fmod() rather than > the `%` operator. For example `bcmod('4', '3.5')` now ret

Re: [PHP-DEV] PHP 7.2.0 Released

2017-12-04 Thread Walter Parker
On Mon, Dec 4, 2017 at 6:27 PM, li...@rhsoft.net wrote: > > > Am 05.12.2017 um 01:19 schrieb Walter Parker: > >> Oh, I see, this not about the actual change (the protocol version). This >> is about when using PHP on the client side, it does not support all/enough >> of the modern cipher suite lis