Re: [PHP-DEV] ??= and function calls

2023-07-05 Thread Ilija Tovilo
Hi Flávio On Wed, Jul 5, 2023 at 12:17 PM Flávio Heleno wrote: >> > I recently discovered some unfortunate behavior of the coalesce >> > assignment operator (??=) in combination with function calls. > > Great catch Ilija! > > Do you mind sharing how did you stumble upon it? Oh, it's

Re: [PHP-DEV] PHP 8.1 and OpenSSL

2023-07-05 Thread Jan Ehrhardt
Ben Ramsey in php.internals (Wed, 5 Jul 2023 10:44:12 -0500): >> On Jun 13, 2023, at 15:06, Jan Ehrhardt wrote: >> >> Hi Christoph, >> snip >>> >>> So, if there are no unforeseen problems, I suggest to build PHP >>> 8.1.16RC1 with OpenSSL 3.0 (PHP 8.1.15RC1 has already been built with >>>

Re: [PHP-DEV] SomeClass::class error???

2023-07-05 Thread Marco Pivetta
Hey Fabio, On Wed, 5 Jul 2023 at 18:14, Fabio Carpi wrote: > I'm new here on the list... Hello everyone! > > I use ::class sometimes to check some classes, but it works with any > keyword, even if the class doesn't exist. > The IDE doesn't show the error, and I only detect the error when the >

[PHP-DEV] SomeClass::class error???

2023-07-05 Thread Fabio Carpi
I'm new here on the list... Hello everyone! I use ::class sometimes to check some classes, but it works with any keyword, even if the class doesn't exist. The IDE doesn't show the error, and I only detect the error when the specific piece of code is running...

Re: [PHP-DEV] PHP 8.1 and OpenSSL

2023-07-05 Thread Ben Ramsey
> On Jun 13, 2023, at 15:06, Jan Ehrhardt wrote: > > Hi Christoph, > > "Christoph M. Becker" in php.internals (Wed, 18 Jan 2023 13:20:41 +0100): >> While the official builds for PHP 8.2 already use OpenSSL 3.0, the PHP >> 8.1 builds are still using OpenSSL 1.1.1. However, OpenSSL 1.1.1 is >>

Re: [PHP-DEV] Request karma privileges to vote on PHP RFCs

2023-07-05 Thread Nuno Maduro
On Wed, 5 Jul 2023 at 01:36, Kalle Sommer Nielsen wrote: > Hi Nuno > > Den tirs. 4. jul. 2023 kl. 22.30 skrev Nuno Maduro >: > > > > Hi Internals, > > > > I am writing to request karma privileges to vote on PHP RFCs. > > > > For those who don't know me, my name is Nuno Maduro > >

Re: [PHP-DEV] ??= and function calls

2023-07-05 Thread Flávio Heleno
Great catch Ilija! Do you mind sharing how did you stumble upon it? Thank you! On Wed, Jul 5, 2023, 06:31 Dmitry Stogov wrote: > On Wed, Jul 5, 2023 at 1:15 AM Ilija Tovilo > wrote: > > > Hi everyone > > > > I recently discovered some unfortunate behavior of the coalesce > > assignment

Re: [PHP-DEV] ??= and function calls

2023-07-05 Thread Dmitry Stogov
On Wed, Jul 5, 2023 at 1:15 AM Ilija Tovilo wrote: > Hi everyone > > I recently discovered some unfortunate behavior of the coalesce > assignment operator (??=) in combination with function calls. Here's > the TL;DR: > > foo()['bar'] ??= 42; > > Currently, this code calls foo() twice. This seems