[PHP-DEV] Re: Straw poll: Naming for `*any()` and `*all()` on iterables

2021-01-11 Thread Mark Randall
On 10/01/2021 16:52, tyson andre wrote: - no namespace: iterable_any()/iterable_all() - iter\ (conflicts with nikic/iter but was also suggested by Nikita) - iterable\ (see below note) - PHP\ (This deliberately uses uppercase, see https://www.php.net/manual/en/language.namespaces.rationale.php) -

[PHP-DEV] [RFC] Allow object keys in arrays

2021-01-11 Thread Nikita Popov
Hi internals, I would like to present a draft RFC for allowing object keys in arrays: https://wiki.php.net/rfc/object_keys_in_arrays The specification in the RFC is incomplete, and primarily focussed on what impact this has from an internal perspective. https://github.com/php/php-src/pull/6588 is

Re: [PHP-DEV] "TryX" idom for Enumerations

2021-01-11 Thread Ben Ramsey
> On Jan 10, 2021, at 20:09, Larry Garfield wrote: > > On Sun, Jan 10, 2021, at 4:40 PM, Mark Randall wrote: >> On 10/01/2021 21:27, Larry Garfield wrote: >>> The "a method that begins with try is nullable, so watch out" idiom is >>> present in C# and Rust, but to my knowledge has never existed

Re: [PHP-DEV] silly question : what is more secure at the moment, php7, php8, or plain .sh shell scripts?

2021-01-11 Thread Ben Ramsey
> On Jan 10, 2021, at 02:10, Rene Veerman > wrote: > > hi. > > i run a website which i want to harden against hacking by 3rd parties. > > i wrote this website back in 2002-2010, and then built apps on top of the > base code. > > now i want to upgrade the entire thing to the latest css3 standa

Re: [PHP-DEV] "TryX" idom for Enumerations

2021-01-11 Thread Larry Garfield
On Mon, Jan 11, 2021, at 2:27 PM, Ben Ramsey wrote: > > On Jan 10, 2021, at 20:09, Larry Garfield wrote: > > > > On Sun, Jan 10, 2021, at 4:40 PM, Mark Randall wrote: > >> On 10/01/2021 21:27, Larry Garfield wrote: > >>> The "a method that begins with try is nullable, so watch out" idiom is > >>

[PHP-DEV] Re: [RFC] Object-scope RNG implementation

2021-01-11 Thread Go Kudo
I have made some fixes to the implementation based on review. The current implementation can be found at the following address (Thanks Tyson: https://github.com/zeriyoshi/php-src/commit/5ff8882a8fbfaf4ffd5cc42fb5853c4a1a00c182 ) https://github.com/php/php-src/compare/master...zeriyoshi:object_scop

Re: [PHP-DEV] "TryX" idom for Enumerations

2021-01-11 Thread Mike Schinkel
> On Jan 11, 2021, at 6:52 PM, Larry Garfield wrote: > > On Mon, Jan 11, 2021, at 2:27 PM, Ben Ramsey wrote: >>> On Jan 10, 2021, at 20:09, Larry Garfield wrote: >>> >>> On Sun, Jan 10, 2021, at 4:40 PM, Mark Randall wrote: On 10/01/2021 21:27, Larry Garfield wrote: > The "a method t