[PHP-DEV] PHP 8.0.18 Released

2022-04-14 Thread Sara Golemon
The PHP development team announces the immediate availability of PHP 8.0.18. This is a security release. All PHP 8.0 users are encouraged to upgrade to this version. For source downloads of PHP 8.0.18 please visit our downloads page: https://www.php.net/downloads Windows source and binaries can b

[PHP-DEV] PHP 8.1.5 Released

2022-04-14 Thread Patrick ALLAERT
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 The PHP development team announces the immediate availability of PHP 8.1.5. This is a bugfix release. All PHP 8.1 users are encouraged to upgrade to this version. For source downloads of PHP 8.1.5 please visit our downloads page. Windows binaries c

[PHP-DEV] Re: Add leading backslash to enum and class names in var_export

2022-04-14 Thread Ilija Tovilo
Hi everyone > Marco Pivetta created a PR that adds leading backslash to all class or > enum names of var_export. Adding a backslash will make the code work > both inside or outside namespaces. > https://github.com/php/php-src/pull/8233 > > To avoid disruption, I'm proposing to merge this into PHP

Re: [PHP-DEV] NULL Coercion Consistency

2022-04-14 Thread Craig Francis
On Thu, 14 Apr 2022 at 10:01, Andreas Leathley wrote: > I have never used strict_types in any code I have ever written, and I care > about types and type coercions. Yet I do not like the strict_types > distinction and I am glad that I do not need to use it, and I think we are > not that far away

[PHP-DEV] PHP 7.4.29 Released!

2022-04-14 Thread Derick Rethans
The PHP development team announces the immediate availability of PHP 7.4.29. This is primarily a release for Windows users due to necessarily upgrades to the OpenSSL and zlib dependencies in which security issues have been found. All PHP 7.4 on Windows users are encouraged to upgrade to this versi

Re: [PHP-DEV] NULL Coercion Consistency

2022-04-14 Thread Andreas Leathley
On 14.04.22 10:10, Craig Francis wrote: My intro says "Roughly 85% scripts do not use strict_types=1", and "Roughly 33% of developers use static analysis" (source of numbers noted in my RFC)... while that does not guarantee anything, it's a fairly good indication that most developers do not care

Re: [PHP-DEV] NULL Coercion Consistency

2022-04-14 Thread Craig Francis
On Thu, 14 Apr 2022 at 08:31, Robert Landers wrote: > > I see null as a real type > > This confuses me... Andreas is probably the best person to explain their view; oddly I see NULL as it's own type as well, because are there are times where it's useful to determine the difference between NULL

Re: [PHP-DEV] NULL Coercion Consistency

2022-04-14 Thread Craig Francis
On Wed, 13 Apr 2022 at 20:08, Andreas Leathley wrote: > Mentioning the documentation as a reason to be "consistent" (which comes > up again and again in your arguments with this RFC) just seems like a > bogus reason to me. It is nitpicking about specific sentences in the > documentation without r

Re: [PHP-DEV] NULL Coercion Consistency

2022-04-14 Thread Robert Landers
On Wed, Apr 13, 2022 at 9:45 PM Craig Francis wrote: > > https://wiki.php.net/rfc/null_coercion_consistency > > On Wed, 13 Apr 2022 at 15:15, G. P. B. wrote: > > > I've spent a large amount of time making coercive typing mode more > > sensible and aligning the behaviour as close to reasonably pos