[PHP-DEV] Re: [RFC] Stricter type-checks for arithmetic/bitwise operators

2020-04-02 Thread Terje Slettebø
Nikita Popov wrote: I would like to propose making the use of arithmetic/bitwise operators on arrays, resources and (non-overloaded) objects a TypeError exception: https://wiki.php.net/rfc/arithmetic_operator_type_checks This is inspired by some of the recent discussions, in particular the ope

Re: [PHP-DEV] [RFC] switch expression

2020-04-02 Thread Terje Slettebø
Larry Garfield wrote: On Sun, Mar 29, 2020, at 4:04 PM, Ilija Tovilo wrote: What you're proposing is a language construct for an *expression*, which evaluates depending on internal logic to a different value. Those are sufficiently distinct that I agree they should have distinct keywords. Plu

Re: [PHP-DEV] [RFC] Constructor Property Promotion

2020-04-02 Thread Nikita Popov
On Thu, Apr 2, 2020 at 3:47 PM Markus Fischer wrote: > Him > > On 02.04.20 12:07, Nikita Popov wrote: > > Reflection will see the state after desugaring. That is, it just sees > > normal properties and normal constructor args. I've made this more > explicit > > in the RFC now: > https://wiki.php.

Re: [PHP-DEV] [RFC] Constructor Property Promotion

2020-04-02 Thread Markus Fischer
Him On 02.04.20 12:07, Nikita Popov wrote: Reflection will see the state after desugaring. That is, it just sees normal properties and normal constructor args. I've made this more explicit in the RFC now: https://wiki.php.net/rfc/constructor_promotion#reflection Thanks! Another one, also rela

Re: [PHP-DEV] [RFC] Stricter type-checks for arithmetic/bitwise operators

2020-04-02 Thread Rowan Tommins
Hi Nikita, On Thu, 2 Apr 2020 at 09:14, Nikita Popov wrote: > I would like to propose making the use of arithmetic/bitwise operators on > arrays, resources and (non-overloaded) objects a TypeError exception: > > https://wiki.php.net/rfc/arithmetic_operator_type_checks > Thanks for writing this

[PHP-DEV] PHP 7.4.5RC1 is available for testing

2020-04-02 Thread Derick Rethans
PHP 7.4.5RC1 has just been released and can be downloaded from: Or use the git tag: php-7.4.5RC1 Windows binaries are available at: Please test it carefully, and report any bugs in the bug system at .

[PHP-DEV] PHP 7.4.5RC1 Announced!!

2020-04-02 Thread Derick Rethans
Hi, tarballs are in https://downloads.php.net/~derick or use the php-7.4.5RC1 tag. Signatures/hashes on and below. The announce is planned for Thursday, April 2nd. Thanks, Derick php-7.4.5RC1.tar.gz SHA256 hash: 86e4b0124fc05be

[PHP-DEV] Re: [RFC] Stricter type-checks for arithmetic/bitwise operators

2020-04-02 Thread Andrea Faulds
Hi Nikita, Nikita Popov wrote: Hi internals, I would like to propose making the use of arithmetic/bitwise operators on arrays, resources and (non-overloaded) objects a TypeError exception: https://wiki.php.net/rfc/arithmetic_operator_type_checks This is inspired by some of the recent discussi

Re: [PHP-DEV] [RFC] Stricter type-checks for arithmetic/bitwise operators

2020-04-02 Thread G. P. B.
On Thu, 2 Apr 2020 at 10:14, Nikita Popov wrote: > Hi internals, > > I would like to propose making the use of arithmetic/bitwise operators on > arrays, resources and (non-overloaded) objects a TypeError exception: > > https://wiki.php.net/rfc/arithmetic_operator_type_checks > > This is inspired

[PHP-DEV] PHP 7.3.17RC1 is available for testing

2020-04-02 Thread Christoph M. Becker
PHP 7.3.17RC1 has just been released and can be downloaded from: Or use the git tag: php-7.3.17RC1 Windows binaries are available at: Please test it carefully, and report any bugs in the bug system. 7.3.17 should be expected in

Re: [PHP-DEV] [VOTE] Userspace operator overloading

2020-04-02 Thread Nikita Popov
On Sat, Mar 28, 2020 at 10:19 PM Andrea Faulds wrote: > Hi everyone, > > Johannes Schlüter wrote: > > > > If we use two methods as well it is a saner design. I won't like it, but > lot better than the current one. > > Just want to +1 this. Two methods, neither of which are static, seems > like a

Re: [PHP-DEV] [RFC] Constructor Property Promotion

2020-04-02 Thread Nikita Popov
On Thu, Apr 2, 2020 at 1:35 AM Markus Fischer wrote: > Hi, > On 2020-03-26 14:30, Nikita Popov wrote: > > I would like to submit the following RFC for your consideration: > > https://wiki.php.net/rfc/constructor_promotion > > > > This is based on one off the suggestions made in > > https://extern

[PHP-DEV] Re: [RFC] Stricter type-checks for arithmetic/bitwise operators

2020-04-02 Thread Christoph M. Becker
On 02.04.2020 at 10:47, Nikita Popov wrote: > On Thu, Apr 2, 2020 at 10:35 AM Christoph M. Becker > wrote: > >> On 02.04.2020 at 10:14, Nikita Popov wrote: >> >>> I would like to propose making the use of arithmetic/bitwise operators on >>> arrays, resources and (non-overloaded) objects a TypeErr

[PHP-DEV] Re: [RFC] Stricter type-checks for arithmetic/bitwise operators

2020-04-02 Thread Nikita Popov
On Thu, Apr 2, 2020 at 10:35 AM Christoph M. Becker wrote: > On 02.04.2020 at 10:14, Nikita Popov wrote: > > > I would like to propose making the use of arithmetic/bitwise operators on > > arrays, resources and (non-overloaded) objects a TypeError exception: > > > > https://wiki.php.net/rfc/arith

[PHP-DEV] Re: [RFC] Stricter type-checks for arithmetic/bitwise operators

2020-04-02 Thread Christoph M. Becker
On 02.04.2020 at 10:14, Nikita Popov wrote: > I would like to propose making the use of arithmetic/bitwise operators on > arrays, resources and (non-overloaded) objects a TypeError exception: > > https://wiki.php.net/rfc/arithmetic_operator_type_checks > > This is inspired by some of the recent di

[PHP-DEV] [RFC] Stricter type-checks for arithmetic/bitwise operators

2020-04-02 Thread Nikita Popov
Hi internals, I would like to propose making the use of arithmetic/bitwise operators on arrays, resources and (non-overloaded) objects a TypeError exception: https://wiki.php.net/rfc/arithmetic_operator_type_checks This is inspired by some of the recent discussions, in particular the operator ov