Re: [PHP-DEV] Access property of object stored in a constant

2023-08-18 Thread Juliette Reinders Folmer
On 18-8-2023 17:27, Ilija Tovilo wrote: Hi everyone Since https://wiki.php.net/rfc/new_in_initializers we can store objects in global constants. However, we may not actually read or write to the properties of those objects without first fetching the constant into a local variable. const a =

[PHP-DEV] Access property of object stored in a constant

2023-08-18 Thread Ilija Tovilo
Hi everyone Since https://wiki.php.net/rfc/new_in_initializers we can store objects in global constants. However, we may not actually read or write to the properties of those objects without first fetching the constant into a local variable. const a = new stdClass; a->b = 42; // Fatal error:

[PHP-DEV] Bad interactions between Fibers and GoRoutines (and/or cgo)

2023-08-18 Thread Kévin Dunglas
Hi there, We are experiencing strange problems with Fibers when running PHP with FrankenPHP. Fibers sometimes interact badly with the Go runtime on Linux x66 or amd64 (especially in Docker containers) and lead to crashes. We've tried many things: compiling with --disable-fiber-asm, compiling