[PHP-DEV] Re: PHP 7.4.0alpha1 is available for testing

2019-06-18 Thread Jan Ehrhardt
Derick Rethans in php.internals (Thu, 13 Jun 2019 12:50:48 +0100 (BST)): >PHP 7.4.0alpha1 has just been released and can be downloaded from: > > > >Or use the git tag: php-7.4.0alpha1 > >Windows binaries are available at: > >Plea

Re: [PHP-DEV] Generating arginfo from stub files

2019-06-18 Thread G. P. B.
On Tue, 18 Jun 2019 at 20:37, Mark Randall wrote: > On 18/06/2019 18:53, Nikita Popov wrote: > > This is not really possible, because we need completely accurate type > > information. phpstorm-stubs is a good approximation especially when it > > comes to "useful" return types, but it doesn't mod

[PHP-DEV] Re: RFC for Sqlite3 Extended Error Codes

2019-06-18 Thread Robert Kopack
Hello everybody, I've had the PR open for this a while now (https://github.com/php/php-src/pull/4166) and was hoping to get more eyes on it; Kalle was looking at it but he appears to have not been as active lately and as I believe it is in a good state right now I was hoping to have some other fee

[PHP-DEV] RFC Desite to move RFC add_str_begin_and_end_functions to a vote

2019-06-18 Thread will
Hello all, I submitted this RFC several years ago. I collected a lot of feedback and I have updated the RFC and corresponding github patch. Please see the RFC at https://wiki.php.net/rfc/add_str_begin_and_end_functions and the github patch at https://github.com/php/php-src/pull/2049. I have a

Re: [PHP-DEV] Generating arginfo from stub files

2019-06-18 Thread Mark Randall
On 18/06/2019 18:53, Nikita Popov wrote: This is not really possible, because we need completely accurate type information. phpstorm-stubs is a good approximation especially when it comes to "useful" return types, but it doesn't model things like possible "false" return values with sufficient acc

Re: [PHP-DEV] Generating arginfo from stub files

2019-06-18 Thread Nikita Popov
On Tue, Jun 18, 2019 at 7:38 PM Rowan Collins wrote: > Hi Nikita, > > On Tue, 18 Jun 2019 at 16:10, Nikita Popov wrote: > >> I've created a proof of concept implementation for this at >> https://github.com/php/php-src/pull/4284. Function signatures are >> specified >> in a xyz.stub.php file from

Re: [PHP-DEV] Generating arginfo from stub files

2019-06-18 Thread Rowan Collins
Hi Nikita, On Tue, 18 Jun 2019 at 16:10, Nikita Popov wrote: > I've created a proof of concept implementation for this at > https://github.com/php/php-src/pull/4284. Function signatures are > specified > in a xyz.stub.php file from which xyz_arginfo.h is generated. This file can > then be includ

Re: [PHP-DEV] Generating arginfo from stub files

2019-06-18 Thread Benjamin Morel
> > But also, it's really a shame we don't have the union types RFC passed > yet, as it means that the return type for a significant number of > functions will be either incomplete or misleading. > > Agreed.

Re: [PHP-DEV] Generating arginfo from stub files

2019-06-18 Thread Dan Ackroyd
On Tue, 18 Jun 2019 at 16:10, Nikita Popov wrote: > Rather than writing this out by hand, I would like arginfo structures to be > generated from PHP stub files that contain definitions like this: > > What do you think about providing this mechanism? Sounds good. But also, it's really a shame we

[PHP-DEV] Generating arginfo from stub files

2019-06-18 Thread Nikita Popov
Hi internals, In PHP 8 it will be possible to add reflectible argument and return type information for internal functions (it was previously theoretically possible as well, but forbidden by policy for php-src for multiple reasons, which have now been resolved). It will take quite a bit of effort