Re: [PHP-DEV] Re: [RFC] var_representation() : readable alternative to var_export()

2021-02-04 Thread tyson andre
Hi internals, > > > I've created https://wiki.php.net/rfc/readable_var_representation based on > > > my original proposal in https://externals.io/message/112924 > > > > > > This RFC proposes adding a new function `var_representation(mixed $value, > > > int $flags=0): string` > > > with the

Re: [PHP-DEV] Analysis of property visibility, immutability, and cloning proposals

2021-02-04 Thread Larry Garfield
On Wed, Feb 3, 2021, at 8:14 AM, Nikita Popov wrote: > On Mon, Dec 28, 2020 at 9:24 PM Larry Garfield > wrote: > > > There's been a number of discussions of late around property visibility > > and how to make objects more immutable. Since it seems to have been > > well-received in the past, I

Re: [PHP-DEV] Re: [RFC] var_representation() : readable alternative to var_export()

2021-02-04 Thread Nikita Popov
On Thu, Feb 4, 2021 at 3:36 PM tyson andre wrote: > Hi internals, > > > I've created https://wiki.php.net/rfc/readable_var_representation based > on > > my original proposal in https://externals.io/message/112924 > > > > This RFC proposes adding a new function `var_representation(mixed > $value,

Re: [PHP-DEV] [RFC] Warning for implicit float to int conversions

2021-02-04 Thread David Gebler
> Except that example is ambiguous. Specifically, which is more logical, to truncate it to 3 or round it up to 4? It probably depends heavily on your context. Implicitly doing one or the other can result in surprises. I disagree this is ambiguous. The integral portion of a float is what it is,

Re: [PHP-DEV] [RFC] Warning for implicit float to int conversions

2021-02-04 Thread Larry Garfield
On Thu, Feb 4, 2021, at 12:06 PM, David Gebler wrote: > If this were to be done, my gut feeling is a notice would be preferable to > a warning, particularly as there must be many scripts which would suddenly > start churning out warnings for this proposed change which might/probably > ignore lower

Re: [PHP-DEV] [RFC] Warning for implicit float to int conversions

2021-02-04 Thread Rowan Tommins
On 04/02/2021 17:54, Benjamin Morel wrote: $age = $_GET['age']; // '25.75' $x = (int) $foo; // I'd expect a warning, not a silent conversion to 25 If we want to make explicit casts "fussy", that would be a much bigger change. Right now, the following are all valid, with no warnings, even

Re: [PHP-DEV] [RFC] Warning for implicit float to int conversions

2021-02-04 Thread David Gebler
If this were to be done, my gut feeling is a notice would be preferable to a warning, particularly as there must be many scripts which would suddenly start churning out warnings for this proposed change which might/probably ignore lower error levels and emitting a warning for a previously common

Re: [PHP-DEV] Re: [RFC] var_representation() : readable alternative to var_export()

2021-02-04 Thread tyson andre
Hi internals, > > > I've created https://wiki.php.net/rfc/readable_var_representation based on > > > my original proposal in https://externals.io/message/112924 > > > > > > [...] > > > > A reminder that voting on the var_representation RFC starts in a day. > > This RFC proposes adding a new

Re: [PHP-DEV] [RFC] Warning for implicit float to int conversions

2021-02-04 Thread Benjamin Morel
On Thu, 4 Feb 2021 at 17:05, G. P. B. wrote: > Greetings internal, > > I'm proposing a new RFC which would warn when an implicit conversion > from float to int occurs. > > The draft is currently located on GitHub: > https://github.com/Girgias/float-int-warning/ > for ease of commenting/providing

[PHP-DEV] [RFC] Warning for implicit float to int conversions

2021-02-04 Thread G. P. B.
Greetings internal, I'm proposing a new RFC which would warn when an implicit conversion from float to int occurs. The draft is currently located on GitHub: https://github.com/Girgias/float-int-warning/ for ease of commenting/providing changes to it. The official discussion phase wouldn't start

Re: [PHP-DEV] Re: [RFC] var_representation() : readable alternative to var_export()

2021-02-04 Thread Guilliam Xavier
On Thu, Feb 4, 2021 at 3:36 PM tyson andre wrote: > Hi internals, > > > I've created https://wiki.php.net/rfc/readable_var_representation based > on > > my original proposal in https://externals.io/message/112924 > > > > [...] > > A reminder that voting on the var_representation RFC starts in a

[PHP-DEV] Re: [RFC] var_representation() : readable alternative to var_export()

2021-02-04 Thread tyson andre
Hi internals, > I've created https://wiki.php.net/rfc/readable_var_representation based on > my original proposal in https://externals.io/message/112924 > > This RFC proposes adding a new function `var_representation(mixed $value, int > $flags=0): string` > with the following differences from

Re: [PHP-DEV] Analysis of property visibility, immutability, and cloning proposals

2021-02-04 Thread Mike Schinkel
> On Feb 3, 2021, at 9:14 AM, Nikita Popov wrote: > > On Mon, Dec 28, 2020 at 9:24 PM Larry Garfield > wrote: > >> There's been a number of discussions of late around property visibility >> and how to make objects more immutable. Since it seems to have been >> well-received in the past, I

[PHP-DEV] PHP 8.0.2 Released!

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

[PHP-DEV] PHP 7.4.15 Released!

2021-02-04 Thread Derick Rethans
The PHP development team announces the immediate availability of PHP 7.4.15. This is a security bug fix release. All PHP 7.4 users are encouraged to upgrade to this version. For source downloads of PHP 7.4.15 please visit our downloads page. Windows binaries can be found on the PHP for Windows

[PHP-DEV] PHP 7.3.27 Released!

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