Re: [PHP-DEV] Optional pre-compiler for PHP8?

2019-10-30 Thread Andreas Hennings
On Wed, 30 Oct 2019 at 22:06, Rowan Tommins wrote: > > Hi Dik, > > On 29/10/2019 21:44, Dik Takken wrote: > > Opcache already performs type inference. [...] > > Here is an interesting read on the subject: > > > > https://depositonce.tu-berlin.de/bitstream/11303/7919/3/popov_etal_2017.pdf > > >

Re: [PHP-DEV] Re: [RFC] Union Types v2

2019-10-30 Thread Dik Takken
On 30-10-19 22:22, Mark Randall wrote: > I don't know if this post has been accidentally sitting in an outbox for > a bit too long and has just sent, but the vote has been underway for a > while now. Thanks, I simply missed that. :) -- PHP Internals - PHP Runtime Development Mailing List To

Re: [PHP-DEV] Re: [RFC] Union Types v2

2019-10-30 Thread Mark Randall
On 30/10/2019 21:11, Dik Takken wrote: Perhaps it might be an idea to wait a little before starting the vote to show the cost going down as more optimization work is done. Just to build confidence with those who are hesitant to give it their approval. I don't know if this post has been

Re: [PHP-DEV] Re: [RFC] Union Types v2

2019-10-30 Thread Dik Takken
On 25-10-19 12:22, Nikita Popov wrote: > I do think that performance considerations are important when it comes to > new typing features (which is why, for example, we have categorically > rejected a "typed arrays" implementation that has to check all array > elements), but don't see union types

Re: [PHP-DEV] Optional pre-compiler for PHP8?

2019-10-30 Thread Rowan Tommins
Hi Dik, On 29/10/2019 21:44, Dik Takken wrote: Opcache already performs type inference. [...] Here is an interesting read on the subject: https://depositonce.tu-berlin.de/bitstream/11303/7919/3/popov_etal_2017.pdf Thanks for the link, and the insight into how much OpCache can already do. I

Re: [PHP-DEV] PHP 7.4 BC break with openssl_random_pseudo_bytes()

2019-10-30 Thread Jakub Zelenka
On Wed, 30 Oct 2019, 18:32 Jakub Zelenka, wrote: > > > On Mon, 23 Sep 2019, 14:02 Nikita Popov, wrote: > >> On Mon, Sep 23, 2019 at 2:52 PM Christian Schneider < >> cschn...@cschneid.com> >> wrote: >> >> > Hi, >> > I just noted (too late in the process, I know) that >> >

Re: [PHP-DEV] PHP 7.4 BC break with openssl_random_pseudo_bytes()

2019-10-30 Thread Jakub Zelenka
On Mon, 23 Sep 2019, 14:02 Nikita Popov, wrote: > On Mon, Sep 23, 2019 at 2:52 PM Christian Schneider > > wrote: > > > Hi, > > I just noted (too late in the process, I know) that > > openssl_random_pseudo_bytes(0) now throws an exception. > > > > This breaks code like > > $ivsize =

Re: [PHP-DEV] [RFC] anti-coalescing-operator

2019-10-30 Thread Ken Stanley
On Wed, Oct 30, 2019 at 7:35 AM Peter Bowyer wrote: > On Fri, 25 Oct 2019 at 00:28, Sara Golemon wrote: > >> At the risk of hijacking, @matthewrask asked me about ?-> a couple weeks >> ago (Javascript is making this one popular), and I threw together a rough >> PoC at >>

[PHP-DEV] Re: FFI & Security

2019-10-30 Thread Christoph M. Becker
On 14.10.2019 at 09:44, Joe Watkins wrote: > Recently we voted on classification criteria for security bugs [1], we > include under "not an issue" any issue that "requires invocation of > specific code, which may be valid but is obviously malicious". > > I would like to add an explicit clause

Re: [PHP-DEV] [RFC] anti-coalescing-operator

2019-10-30 Thread Peter Bowyer
On Fri, 25 Oct 2019 at 00:28, Sara Golemon wrote: > At the risk of hijacking, @matthewrask asked me about ?-> a couple weeks > ago (Javascript is making this one popular), and I threw together a rough > PoC at > https://github.com/php/php-src/compare/master...sgolemon:null-coalesce > which > I