Re: [PHP-DEV] Why am I unable to use 'readline_on_new_line()' on my windows machine?

2021-04-29 Thread Kalle Sommer Nielsen
Den tor. 29. apr. 2021 kl. 18.50 skrev Hamza Ahmad : > > Hello Internals, > I am unable to call readline_on_new_line() function. > I am posting this to internals to confirm whether it is a bug or an issue > with docs. Please report such things on the bug tracker first always, so it can be checked

[PHP-DEV] Why am I unable to use 'readline_on_new_line()' on my windows machine?

2021-04-29 Thread Hamza Ahmad
Hello Internals, I am unable to call readline_on_new_line() function. I am posting this to internals to confirm whether it is a bug or an issue with docs. The manual suggests that this function is available on php 8. https://php.net/manual/en/function.readline-on-new-line.php However, when I

[PHP-DEV] PHP 8.0.5 Released

2021-04-29 Thread Gabriel Caruso
The PHP development team announces the immediate availability of PHP 8.0.5. This is a bugfix release. All PHP 8.0 users are encouraged to upgrade to this version. For source downloads of PHP 8.0.5 please visit our downloads page. Windows binaries can be found on the PHP for Windows site. The

[PHP-DEV] PHP 7.3.28 Released!

2021-04-29 Thread Christoph M. Becker
The PHP development team announces the immediate availability of PHP 7.3.28. This is a security release. All PHP 7.3 users are encouraged to upgrade to this version. For source downloads of PHP 7.3.28 please visit our downloads page. Windows binaries can be found on the PHP for Windows site.

Re: [PHP-DEV] [RFC] Auto-capture multi-line closures and short functions take 2

2021-04-29 Thread Rowan Tommins
On 29/04/2021 10:25, Christian Schneider wrote: Without a keyword like "var" to declare it, I think most users would assume that an initialisation like "$foo=null;" at the top of their closure would make a variable local. This assumption by the users would be true as we are capturing by value,

Re: [PHP-DEV] [RFC] Auto-capture multi-line closures and short functions take 2

2021-04-29 Thread Christian Schneider
Am 29.04.2021 um 10:14 schrieb Rowan Tommins : > On 28/04/2021 23:00, Nuno Maduro wrote: > 3) All variables are captured, there is no local scope. This is effectively > what PHP's single-expression closures use. > > Option 3 is the easy option, and is currently "good enough" because it's rare >

Re: [PHP-DEV] [RFC] Auto-capture multi-line closures and short functions take 2

2021-04-29 Thread Nikita Popov
On Thu, Apr 29, 2021 at 12:00 AM Nuno Maduro wrote: > On Wed, 28 Apr 2021 at 15:31, Nikita Popov wrote: > >> On Wed, Mar 24, 2021 at 5:20 PM Larry Garfield >> wrote: >> >> > Greetings, Internalians. >> > >> > Some months back I proposed an RFC for short functions. >> > >> >

Re: [PHP-DEV] [RFC] Auto-capture multi-line closures and short functions take 2

2021-04-29 Thread Rowan Tommins
On 28/04/2021 23:00, Nuno Maduro wrote: Concerning point 2: Developing some sort of static analysis that can infer what needs to be captured may be problematic. First, that won't be consistent with the way auto-capture currently works in PHP (one-line short closures). The question is, how do

Re: [PHP-DEV] [RFC][Draft] Sealed Classes

2021-04-29 Thread Guilliam Xavier
On Wed, Apr 28, 2021 at 10:18 PM Dan Ackroyd wrote: > On Wed, 28 Apr 2021 at 14:30, Guilliam Xavier > wrote: > > > > Forwarding to the list, and answering: > > > > Please don't do that. > > He was blocked from the list for repeatedly derailing conversations. > > After someone has been banned