Re: [PHP-DEV] [VOTE] Dump results of expressions in `php -a`

2021-02-08 Thread Peter Bowyer
On Mon, 1 Feb 2021 at 15:40, Bob Weinand wrote: > My main concern in this iteration of the RFC is: what happens with > big/deeply nested objects? > They tend to spew tons of lines if var_dump()'ed. Do we have reasonable > depth/output limitations in default dumping mode? > Good catch Bob, I'd

Re: [PHP-DEV] Interaction between finally blocks and exit()

2021-02-08 Thread Guilliam Xavier
Executing finally blocks after a die was discussed in https://externals.io/message/107497 "exit() via exception", but https://github.com/php/php-src/pull/5243 "Make exit() unwind properly" wasn't merged in 8.0, just https://github.com/php/php-src/pull/5768 "... (minimal version)". The change of

[PHP-DEV] [VOTE] PHP\iterable\any() and all() on iterables

2021-02-08 Thread tyson andre
Hi internals, Voting has started on https://wiki.php.net/rfc/any_all_on_iterable and ends on 2021-02-22. This RFC proposes to add the functions `PHP\iterable\any(iterable $input, ?callable $callback = null): bool` and `PHP\iterable\all(...)` to PHP's standard library's function set, using the

Re: [PHP-DEV] [VOTE] PHP\iterable\any() and all() on iterables

2021-02-08 Thread Larry Garfield
On Mon, Feb 8, 2021, at 8:32 AM, tyson andre wrote: > Hi internals, > > Voting has started on https://wiki.php.net/rfc/any_all_on_iterable and > ends on 2021-02-22. > > This RFC proposes to add the functions `PHP\iterable\any(iterable > $input, ?callable $callback = null): bool` and

[PHP-DEV] Re: [VOTE] PHP\iterable\any() and all() on iterables

2021-02-08 Thread tyson andre
Hi internals, > Voting has started on https://wiki.php.net/rfc/any_all_on_iterable and ends > on 2021-02-22. > > This RFC proposes to add the functions `PHP\iterable\any(iterable $input, > ?callable $callback = null): bool` and `PHP\iterable\all(...)` > to PHP's standard library's function

Re: [PHP-DEV] Proposal: Add ReverseArrayIterator and ForwardArrayIterator to SPL

2021-02-08 Thread Alexandru Pătrănescu
> > > I'll code this up soon unless someone objects. I'm very open to naming > suggestions for a better performing, simpler array iterator. > ListIterator or ArrayListIterator, as we are using the array as a list only, ordered, of key-value pairs...

Re: [PHP-DEV] [VOTE] PHP\iterable\any() and all() on iterables

2021-02-08 Thread Mark Randall
On 08/02/2021 15:14, Kalle Sommer Nielsen wrote: Den man. 8. feb. 2021 kl. 17.08 skrev Levi Morrison via internals : - I do not like the chosen namespace. This is not as important as the previous point, but still factored into my decision as we are still very early in choosing namespaces for

Re: [PHP-DEV] [VOTE] PHP\iterable\any() and all() on iterables

2021-02-08 Thread tyson andre
Hi Larry Garfield, > > Hi internals, > > > > Voting has started on https://wiki.php.net/rfc/any_all_on_iterable and > > ends on 2021-02-22. > > > > This RFC proposes to add the functions `PHP\iterable\any(iterable > > $input, ?callable $callback = null): bool` and `PHP\iterable\all(...)` > >

Re: [PHP-DEV] [VOTE] PHP\iterable\any() and all() on iterables

2021-02-08 Thread tyson andre
Hi Levi Morrison, > > Hi internals, > > > > Voting has started on https://wiki.php.net/rfc/any_all_on_iterable and ends > > on 2021-02-22. > > > > This RFC proposes to add the functions `PHP\iterable\any(iterable $input, > > ?callable $callback = null): bool` and `PHP\iterable\all(...)` > > to

Re: [PHP-DEV] [VOTE] PHP\iterable\any() and all() on iterables

2021-02-08 Thread Levi Morrison via internals
On Mon, Feb 8, 2021 at 7:33 AM tyson andre wrote: > > Hi internals, > > Voting has started on https://wiki.php.net/rfc/any_all_on_iterable and ends > on 2021-02-22. > > This RFC proposes to add the functions `PHP\iterable\any(iterable $input, > ?callable $callback = null): bool` and

Re: [PHP-DEV] Proposal: Add ReverseArrayIterator and ForwardArrayIterator to SPL

2021-02-08 Thread Levi Morrison via internals
On Wed, Feb 3, 2021 at 8:50 AM Nikita Popov wrote: > > On Wed, Feb 3, 2021 at 4:38 PM Levi Morrison wrote: > > > Hello, everyone! > > > > This proposal adds two new classes to the SPL: > > > > - `Spl\ReverseArrayIterator`. It iterates over an array in reverse > > order. It does not duplicate

[PHP-DEV] Re: [VOTE] Array unpacking with string keys

2021-02-08 Thread Nikita Popov
On Mon, Jan 25, 2021 at 3:04 PM Nikita Popov wrote: > Hi internals, > > I've opened the vote on > https://wiki.php.net/rfc/array_unpacking_string_keys. Voting closes in > two weeks, on 2021-02-08. > The RFC has been accepted unanimously, with 50 votes in favor. Regards, Nikita

Re: [PHP-DEV] [VOTE] PHP\iterable\any() and all() on iterables

2021-02-08 Thread Kalle Sommer Nielsen
Den man. 8. feb. 2021 kl. 17.08 skrev Levi Morrison via internals : > - I do not like the chosen namespace. This is not as important as the > previous point, but still factored into my decision as we are still > very early in choosing namespaces for internals. I don't want to vote > for something

Re: [PHP-DEV] [VOTE] PHP\iterable\any() and all() on iterables

2021-02-08 Thread Larry Garfield
On Mon, Feb 8, 2021, at 12:02 PM, tyson andre wrote: > Hi Larry Garfield, > > > > Hi internals, > > > > > > Voting has started on https://wiki.php.net/rfc/any_all_on_iterable and > > > ends on 2021-02-22. > > > > > > This RFC proposes to add the functions `PHP\iterable\any(iterable > > >

Re: [PHP-DEV] Inheritance Cache

2021-02-08 Thread Dmitry Stogov
Hi Brent, Preloading had intention to completely eliminate opcache overhead, but because of limitations it wasn't able to preload classes with unresolved constants, typed properties and covariant checks. This PR makes these preloading limitations less strict and adds transparent inheritance

Re: [PHP-DEV] Inheritance Cache

2021-02-08 Thread Brent Roose
Hey Dmitry Out of curiousity: how does this compare to preloading? From what I understand preloading also links classes, which was one of the most important differences between preloading files and simply storing them in opcache. Does this change mean that preloading becomes much less relevant

Re: [PHP-DEV] [VOTE] PHP\iterable\any() and all() on iterables

2021-02-08 Thread tyson andre
Hi Larry Garfield, > > Hi Larry Garfield, > > > > > > Hi internals, > > > > > > > > Voting has started on https://wiki.php.net/rfc/any_all_on_iterable and > > > > ends on 2021-02-22. > > > > > > > > This RFC proposes to add the functions `PHP\iterable\any(iterable > > > > $input, ?callable

Re: [PHP-DEV] [VOTE] PHP\iterable\any() and all() on iterables

2021-02-08 Thread Kamil Tekiela
Hi Tyson, Thanks for the RFC. I have to say that I like the core concept and the motivation behind it. However, let me explain why I voted No. 1. As others have said I think that the scope is too small. If we are going to create that namespace then I would like to see more functions/classes in

Re: [PHP-DEV] [VOTE] PHP\iterable\any() and all() on iterables

2021-02-08 Thread Levi Morrison via internals
On Mon, Feb 8, 2021 at 5:15 PM tyson andre wrote: > > Hi Larry Garfield, > > > > Hi Larry Garfield, > > > > > > > > Hi internals, > > > > > > > > > > Voting has started on https://wiki.php.net/rfc/any_all_on_iterable and > > > > > ends on 2021-02-22. > > > > > > > > > > This RFC proposes to add