Re: [PHP-DEV] [VOTE] Support Closures in constant expressions

2024-11-27 Thread Juliette Reinders Folmer
On 27-11-2024 22:58, Tim Düsterhus wrote: Hi On 11/27/24 22:50, Juliette Reinders Folmer wrote: One thing I'm wondering about - and of which I saw no mention in the RFC nor in the preceding discussion - knowing that function names are case-insensitive, how is ambiguity handled when _calling_ a

Re: [PHP-DEV] [VOTE] Support Closures in constant expressions

2024-11-27 Thread Tim Düsterhus
Hi On 11/27/24 22:50, Juliette Reinders Folmer wrote: One thing I'm wondering about - and of which I saw no mention in the RFC nor in the preceding discussion - knowing that function names are case-insensitive, how is ambiguity handled when _calling_ a callback stored in a (class) constant ? N

Re: [PHP-DEV] [VOTE] Support Closures in constant expressions

2024-11-27 Thread Juliette Reinders Folmer
On 27-11-2024 15:03, Tim Düsterhus wrote: Hi Am 2024-11-13 14:40, schrieb Tim Düsterhus: we just started the vote the the "Support Closures in constant expressions" RFC. Please find the following resources for your reference: RFC: https://wiki.php.net/rfc/closures_in_const_expr Implementatio

Re: [PHP-DEV] [RFC] [Discussion] Persistent curl share handle improvement

2024-11-27 Thread Tim Düsterhus
Hi On 11/27/24 18:13, Eric Norris wrote: https://wiki.php.net/rfc/curl_share_persistence_improvement Thank you. As I've already said in the PR, this is a clear improvement that resolves my concerns with the initially proposed API. I'll happily vote in favor of this follow-up RFC and am looki

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

2024-11-27 Thread Theodore Brown
On Thu, Nov. 21, 2024 at 03:37 Tim Düsterhus wrote: > Am 2024-11-20 19:45, schrieb Theodore Brown: >> I don't feel particularly strongly about it, but I am inclined to write an >> RFC to deprecate it > > It doesn't feel big enough to warrant its own RFC, > but I would be happy to see it as part o

Re: [PHP-DEV] Needs Feedback - Yield without value in reference generator function does not create notice

2024-11-27 Thread aggelos bellos
> > > A notice would be consistent with what happens with: `function &f() { > return; }; f();`. But don’t add new notices in patch releases, otherwise > you may break without warning a non-trivial amount of code that conflates > notices with fatal errors. The bug is not serious enough to warrant su

[PHP-DEV] [RFC] [Discussion] Persistent curl share handle improvement

2024-11-27 Thread Eric Norris
Hello again internals, Similar to the Random Extension improvement RFC (https://wiki.php.net/rfc/random_extension_improvement), I am creating an RFC to address possible improvements to the recently accepted curl share persistence RFC (https://wiki.php.net/rfc/curl_share_persistence). https://wiki

Re: [PHP-DEV] [VOTE] Support Closures in constant expressions

2024-11-27 Thread Tim Düsterhus
Hi Am 2024-11-13 14:40, schrieb Tim Düsterhus: we just started the vote the the "Support Closures in constant expressions" RFC. Please find the following resources for your reference: RFC: https://wiki.php.net/rfc/closures_in_const_expr Implementation: https://github.com/php/php-src/pull/1645