Re: [PHP-DEV] [RFC] Static property asymmetric visibility

2025-02-10 Thread Larry Garfield
On Tue, Jan 7, 2025, at 1:21 PM, Niels Dossche wrote: > On 07/01/2025 19:49, Ilija Tovilo wrote: >> I wouldn't necessarily call this a workaround, but more of a missed >> optimization (one branch for each static property write that is >> unlikely to mispredict). If you wish, I can have a look at se

Re: [PHP-DEV] CLI/CGI -z command line options is broken

2025-02-10 Thread Larry Garfield
On Mon, Feb 10, 2025, at 3:24 PM, Niels Dossche wrote: > Hi internals > > We received a bug report (https://github.com/php/php-src/issues/17740) > that the `-z` command line option for CLI/CGI doesn't actually work. > This option is supposed to load a zend extension using a command line > argumen

[PHP-DEV] CLI/CGI -z command line options is broken

2025-02-10 Thread Niels Dossche
Hi internals We received a bug report (https://github.com/php/php-src/issues/17740) that the `-z` command line option for CLI/CGI doesn't actually work. This option is supposed to load a zend extension using a command line argument. However, it turns out that the extension doesn't actually load:

[PHP-DEV] Override static in return types with self in final classes

2025-02-10 Thread Mihail Liahimov
After implementing static types in return methods, I noticed one thing that was illogical, in my opinion. We have the following code: interface A { public function method1(): static; } final class Foo extends B implements A { public function method1(): static { return $this;

Re: [PHP-DEV] [RFC] Pipe Operator (again)

2025-02-10 Thread Tim Düsterhus
Hi Am 2025-02-07 05:57, schrieb Larry Garfield: https://wiki.php.net/rfc/pipe-operator-v3 After also having taken a look at the implementation and then the updated “Precedence” section, I'd like to argue in favor of moving `|>` to have a higher precedence than the comparison operators (i.e.