[PHP-DEV] PHP 8.1.31 Released!

2024-11-20 Thread Patrick ALLAERT
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 The PHP development team announces the immediate availability of PHP 8.1.31. This is a security release that addresses CVE-2024-8932, CVE-2024-8929, CVE-2024-11236, CVE-2024-11236, CVE-2024-11234 and CVE-2024-11233. All PHP 8.1 users are advised to

[PHP-DEV] PHP 8.3.14 Released

2024-11-20 Thread ericmann
The PHP development team announces the immediate availability of PHP 8.3.14. This is a security release that addressesCVE-2024-8929, CVE-2024-8932,CVE-2024-11233, CVE-2024-11234, andCVE-2024-11236. All PHP 8.3 users are encouraged to upgrade to this version. For source downloads of PHP 8.3.14

[PHP-DEV] PHP 8.2.26 Released!

2024-11-20 Thread Pierrick Charron
The PHP development team announces the immediate availability of PHP 8.2.26. This is a security release that addresses CVE-2024-8932, CVE-2024-8929, CVE-2024-11236, CVE-2024-11236, CVE-2024-11234 and CVE-2024-11233. All PHP 8.2 users are advised to upgrade to this version. For source downloads of

[PHP-DEV] opcache_compile_file() declares top-level functions

2024-11-20 Thread Ilija Tovilo
Hi everyone We recently received a bug report regarding the behavior of opcache_compile_file() [1]. The documentation specifies: https://www.php.net/manual/en/function.opcache-compile-file.php > This function compiles a PHP script and adds it to the opcode cache without > executing it. This can

Re: [PHP-DEV] Deprecate alternate switch case syntax?

2024-11-20 Thread Derick Rethans
On 20 November 2024 20:24:32 CET, Theodore Brown wrote: >On Wed, Nov. 20, 2024 at 13:03 Derick Rethans wrote: > >> On 20 November 2024 19:26:12 CET, Theodore Brown wrote: >>> On Wed, Nov 20, 2024 at 09:23 Kamil Tekiela wrote: >>> Do you know why the two exist? Was there any historical reason

Re: [PHP-DEV] Deprecate alternate switch case syntax?

2024-11-20 Thread Theodore Brown
On Wed, Nov. 20, 2024 at 13:03 Derick Rethans wrote: > On 20 November 2024 19:26:12 CET, Theodore Brown wrote: >> On Wed, Nov 20, 2024 at 09:23 Kamil Tekiela wrote: >> >>> Do you know why the two exist? Was there any historical reason for this? >>> >>> From what cmb69 said[1], it seems like it may

Re: [PHP-DEV] Deprecate alternate switch case syntax?

2024-11-20 Thread Niels Dossche
On 20/11/2024 15:45, Theodore Brown wrote: > Hello Internals, > > I recently found out (after 15 years of being a PHP developer) that PHP > allows using a semicolon rather than a colon after case statements. [1] I.e.: > > switch ($value) { > case 'foo'; > case 'bar': >

Re: [PHP-DEV] Deprecate alternate switch case syntax?

2024-11-20 Thread Derick Rethans
On 20 November 2024 19:26:12 CET, Theodore Brown wrote: >On Wed, Nov 20, 2024 at 09:23 Kamil Tekiela wrote: > >> Do you know why the two exist? Was there any historical reason for this? >> >> From what cmb69 said[1], it seems like it may exist because of the >> implicit semicolon in ?>, and after

Re: [PHP-DEV] Deprecate alternate switch case syntax?

2024-11-20 Thread Theodore Brown
On Wed, Nov. 20, 2024 at 11:38 Larry Garfield wrote: > Unless it's causing parser issues somewhere I don't think we *need* to > address it. Maybe just document that one really shouldn't use it, and it's > only there for legacy reasons. That said, if someone wants to go to the work > of removi

Re: [PHP-DEV] Deprecate alternate switch case syntax?

2024-11-20 Thread Theodore Brown
On Wed, Nov 20, 2024 at 09:23 Kamil Tekiela wrote: > Do you know why the two exist? Was there any historical reason for this? > > From what cmb69 said[1], it seems like it may exist because of the > implicit semicolon in ?>, and after I tested it, it seems to be true. > Was there ever any other r

Re: [PHP-DEV] Deprecate alternate switch case syntax?

2024-11-20 Thread Larry Garfield
On Wed, Nov 20, 2024, at 10:44 AM, Claude Pache wrote: >> Le 20 nov. 2024 à 15:45, Theodore Brown a écrit : >> >> Hello Internals, >> >> I recently found out (after 15 years of being a PHP developer) that PHP >> allows using a semicolon rather than a colon after case statements. [1] I.e.: >> >

Re: [PHP-DEV] Deprecate alternate switch case syntax?

2024-11-20 Thread Claude Pache
> Le 20 nov. 2024 à 15:45, Theodore Brown a écrit : > > Hello Internals, > > I recently found out (after 15 years of being a PHP developer) that PHP > allows using a semicolon rather than a colon after case statements. [1] I.e.: > > Hi, For reference, previous discussion on the subject:

Re: [PHP-DEV] Deprecate alternate switch case syntax?

2024-11-20 Thread Kamil Tekiela
Hi Theodore, Do you know why the two exist? Was there any historical reason for this? >From what cmb69 said[1], it seems like it may exist because of the implicit semicolon in ?>, and after I tested it, it seems to be true. Was there ever any other reason? [1]: https://github.com/php/php-src/iss

[PHP-DEV] Deprecate alternate switch case syntax?

2024-11-20 Thread Theodore Brown
Hello Internals, I recently found out (after 15 years of being a PHP developer) that PHP allows using a semicolon rather than a colon after case statements. [1] I.e.: switch ($value) { case 'foo'; case 'bar': case 'baz'; echo 'foo, bar, or baz';

Re: [PHP-DEV] Better development streamlining of the built-in server

2024-11-20 Thread Hammed Ajao
On Tue, Nov 19, 2024, 6:38 a.m. Bilge wrote: > On 19/11/2024 13:26, John D'Orazio wrote: > > I don't understand why an application should not know which > > environment it is running in? > > I don't know if this list is the place to be discussing this, but here > goes: > > Typically you are injec