On Wednesday, 2 July 2025 at 17:26, Arnaud Le Blanc <arnaud...@gmail.com> wrote:
> On Wednesday, July 2nd, 2025 at 17:05, Tim Düsterhus t...@bastelstu.be wrote:
> > is_callable($f, callable_name: $name);
> > var_dump($name);
> 
> 
> Closure::__invoke (like FCCs)

I'm slightly hijacking this to mention that this seems like a bug in how an FCC 
currently grabs the name of a Closure, and have submitted 
https://github.com/php/php-src/pull/19011 as a fix.
This came up during my review of Daniel's implementation for the deprecation of 
returning non string values from output handlers that was accepted for 8.4 but 
didn't make it.

As such, could you pull in this patch and see how it affects error messages?

Otherwise, having had a glimpse of the implementation, I can't really see any 
reason for it to not be voted on for acceptance in 8.5.


Best regards,

Gina P. Banyard

Reply via email to