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 follo
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 de
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,
> 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,
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
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
tho
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
sc
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 func
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
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
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 d
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 va
> 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 deci
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 l
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 si
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.
The
16 matches
Mail list logo