Re: [PHP-DEV] [RFC] Short Closures 2, aka auto-capture take 3

2022-06-09 Thread Nikita Popov
On Thu, Jun 9, 2022 at 9:39 PM Marco Pivetta wrote: > Hey Nikita, > > On Thu, 9 Jun 2022 at 21:35, Nikita Popov wrote: > >> On Thu, Jun 9, 2022 at 9:29 PM Marco Pivetta wrote: >> >>> >>> On Thu, 9 Jun 2022 at 21:27, Nikita Popov wrote: >>> On Thu, Jun 9, 2022 at 8:15 PM Arnaud Le Blanc >

Re: [PHP-DEV] [RFC] Short Closures 2, aka auto-capture take 3

2022-06-09 Thread Marco Pivetta
Hey Nikita, On Thu, 9 Jun 2022 at 21:35, Nikita Popov wrote: > On Thu, Jun 9, 2022 at 9:29 PM Marco Pivetta wrote: > >> >> On Thu, 9 Jun 2022 at 21:27, Nikita Popov wrote: >> >>> On Thu, Jun 9, 2022 at 8:15 PM Arnaud Le Blanc >>> wrote: >>> > Would that allow us to get rid of `static fn

Re: [PHP-DEV] [RFC] Short Closures 2, aka auto-capture take 3

2022-06-09 Thread Nikita Popov
On Thu, Jun 9, 2022 at 9:29 PM Marco Pivetta wrote: > > On Thu, 9 Jun 2022 at 21:27, Nikita Popov wrote: > >> On Thu, Jun 9, 2022 at 8:15 PM Arnaud Le Blanc >> wrote: >> >>> Hi, >>> >>> On jeudi 9 juin 2022 18:46:53 CEST Marco Pivetta wrote: >>> > ## nesting these functions within each other >>

Re: [PHP-DEV] [RFC] Short Closures 2, aka auto-capture take 3

2022-06-09 Thread Marco Pivetta
On Thu, 9 Jun 2022 at 21:27, Nikita Popov wrote: > On Thu, Jun 9, 2022 at 8:15 PM Arnaud Le Blanc > wrote: > >> Hi, >> >> On jeudi 9 juin 2022 18:46:53 CEST Marco Pivetta wrote: >> > ## nesting these functions within each other >> > >> > What happens when/if we nest these functions? Take this mi

Re: [PHP-DEV] [RFC] Short Closures 2, aka auto-capture take 3

2022-06-09 Thread Nikita Popov
On Thu, Jun 9, 2022 at 8:15 PM Arnaud Le Blanc wrote: > Hi, > > On jeudi 9 juin 2022 18:46:53 CEST Marco Pivetta wrote: > > ## nesting these functions within each other > > > > What happens when/if we nest these functions? Take this minimal example: > > > > ```php > > $a = 'hello world'; > > > >

Re: [PHP-DEV] [RFC] Short Closures 2, aka auto-capture take 3

2022-06-09 Thread Larry Garfield
On Thu, Jun 9, 2022, at 1:36 PM, Michał Marcin Brzuchalski wrote: > Hi Larry, > > czw., 9 cze 2022 o 18:34 Larry Garfield napisał(a): > >> Last year, Nuno Maduro and I put together an RFC for combining the >> multi-line capabilities of long-closures with the auto-capture compactness >> of short-cl

Re: [PHP-DEV] [RFC] Short Closures 2, aka auto-capture take 3

2022-06-09 Thread Michał Marcin Brzuchalski
Hi Larry, czw., 9 cze 2022 o 18:34 Larry Garfield napisał(a): > Last year, Nuno Maduro and I put together an RFC for combining the > multi-line capabilities of long-closures with the auto-capture compactness > of short-closures. That RFC didn't fully go to completion due to concerns > over the

Re: [PHP-DEV] [RFC] Short Closures 2, aka auto-capture take 3

2022-06-09 Thread Arnaud Le Blanc
Hi, On jeudi 9 juin 2022 18:46:53 CEST Marco Pivetta wrote: > ## nesting these functions within each other > > What happens when/if we nest these functions? Take this minimal example: > > ```php > $a = 'hello world'; > > (fn () { > (fn () { > echo $a; > })(); > })(); > ``` Cap

Re: [PHP-DEV] [RFC] Short Closures 2, aka auto-capture take 3

2022-06-09 Thread Marco Pivetta
Hey Larry, On Thu, 9 Jun 2022 at 18:34, Larry Garfield wrote: > Last year, Nuno Maduro and I put together an RFC for combining the > multi-line capabilities of long-closures with the auto-capture compactness > of short-closures. That RFC didn't fully go to completion due to concerns > over the

[PHP-DEV] [RFC] Short Closures 2, aka auto-capture take 3

2022-06-09 Thread Larry Garfield
Last year, Nuno Maduro and I put together an RFC for combining the multi-line capabilities of long-closures with the auto-capture compactness of short-closures. That RFC didn't fully go to completion due to concerns over the performance impact, which Nuno and I didn't have bandwidth to resolve.

[PHP-DEV] PHP 8.2.0alpha1 is available for testing

2022-06-09 Thread Sergey Panteleev
I apologize, the previous post had the wrong tag, The correct one, of course, is php-8.2.0alpha1 — wbr, Sergey Panteleev

[PHP-DEV] PHP 8.2.0alpha1 is available for testing

2022-06-09 Thread Sergey Panteleev
PHP 8.2.0alpha1 has just been released and can be downloaded from: https://downloads.php.net/~sergey Or use the git tag: php-8.1.0alpha1 Windows binaries are available at: https://windows.php.net/qa/ This is the first official release of the PHP 8.2 serial and includes an incredible amount of wor

[PHP-DEV] PHP 7.4.30 Released!

2022-06-09 Thread Derick Rethans
The PHP development team announces the immediate availability of PHP 7.4.30. This is security release that addresses a buffer overflow with mysqlnd/PDO passwords, and an uninitialised array in pg_query_params(). All PHP 7.4 users are encouraged to upgrade to this version. For source downloads of

[PHP-DEV] PHP 8.1.7 Released

2022-06-09 Thread Ben Ramsey
The PHP development team announces the immediate availability of PHP 8.1.7. This is a security release. All PHP 8.1 users are encouraged to upgrade to this version. For source downloads of PHP 8.1.7 please visit our downloads page. Windows binaries can be found on the PHP for Windows site. The l