[PHP-DEV] [Question] Variadic method signature compatibility between 5.6 and 7.0

2015-11-01 Thread Alexander Lisachenko
Hello, internals! I have a question about changed behavior in 7.0 for matching signature of variadic method. Here is an example of code: class Foo { public static function test($bar = null) { var_dump(func_get_args()); } } class Baz extends Foo { public static function test(

[PHP-DEV] Re: Make sessions use php_random_bytes in 7.1

2015-11-01 Thread Tom Worster
On 11/1/15, 12:40 PM, "Leigh" wrote: >On 1 November 2015 at 16:07, Tom Worster wrote: > > >I don't have one. > >But if I may ask, I'm curious, as always: What happens in the case that >php_random_bytes() fails? > >Tom > > >That's a good point. > >session_start() would throw the exception generat

[PHP-DEV] Re: Friend class/function

2015-11-01 Thread Andrea Faulds
Hi Georges, georges wrote: ​Hi php internals, I recently discovered ​the "friendship concept" in c++ and i really love the concept. And i wonder if the php internals would be interested to implements it in the next 7.x major version. I recently wished PHP had this feature when trying to imple

[PHP-DEV] Re: Make sessions use php_random_bytes in 7.1

2015-11-01 Thread Leigh
On 1 November 2015 at 16:07, Tom Worster wrote: > > I don't have one. > > But if I may ask, I'm curious, as always: What happens in the case that > php_random_bytes() fails? > > Tom > That's a good point. session_start() would throw the exception generated by php_random_bytes() letting you know

[PHP-DEV] Re: Make sessions use php_random_bytes in 7.1

2015-11-01 Thread Tom Worster
On 10/30/15 3:48 PM, Leigh wrote: Hi all, I would like to refactor session id generation to use our new php_random_bytes API as the single entropy source for session ids, targeting 7.1 Overall this would give a small performance increase to session generation, a large security increase to sessi

[PHP-DEV] Friend class/function

2015-11-01 Thread georges
​Hi php internals, I recently discovered ​the "friendship concept" in c++ and i really love the concept. And i wonder if the php internals would be interested to implements it in the next 7.x major version. ​The concept is simple: It would allow declared "friend"​class method/function to call a

Re: [PHP-DEV] Password_hash salt generation refactor

2015-11-01 Thread Tom Worster
On 10/30/15 2:36 PM, Anatol Belski wrote: Hi Anthony, -Original Message- From: Anthony Ferrara [mailto:ircmax...@gmail.com] Sent: Friday, October 30, 2015 11:58 AM All, On Tue, Oct 20, 2015 at 11:35 PM, Anatol Belski wrote: Could php_random_bytes() be extended with a flag that would