Re: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing API

2025-03-12 Thread Máté Kocsis
Hi Tim, > The same is true for `UriOperationException`. The RFC says that it can > happen for memory issues. Can this actually happen? My understanding is > that the engine bails out when an allocation fails. In any case if a > more graceful handling is desired it should be some generic > `OutOfM

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

2025-03-12 Thread Rowan Tommins [IMSoP]
On 11 March 2025 09:00:52 GMT, "Côme Chilliet" wrote: >This would be way better on performances as a single foreach, no? >I feel like this pipe operator encourages coders to use array_* functions with >closures, which is often terrible performances compared to a loop. I think this highlights

[PHP-DEV] Re: RFC: short and inner classes

2025-03-12 Thread Rob Landers
On Thu, Mar 6, 2025, at 00:11, Rob Landers wrote: > Hello PHP Internals, > > I'd like to introduce my RFC for discussion: > https://wiki.php.net/rfc/short-and-inner-classes > > This RFC defines a short class syntax as well as the ability to nest classes > inside another class. This introduces a

Re: [PHP-DEV] [RFC] [Discussion] Never parameters

2025-03-12 Thread Yogarine
On 10 Mar 2025, at 20:07, Daniel Scherzer wrote: > Hi internals, > > I'd like to start discussion on a new RFC about allowing `never` for > parameter types when declaring a method. > > * RFC: https://wiki.php.net/rfc/never-parameters-v2 > * Implementation: https://github.com/php/php-src/pull/18