[PHP-DEV] Ability to set DONTFRAGMENT for UDP packets in ext/sockets

2023-01-09 Thread Dylan K. Taylor
Hi all, I noticed there is currently no way to set the DF (don't fragment) bit for UDP packets sent using `ext/sockets`. This is problematic when trying to do UDP path MTU discovery using PHP. I'm unsure if there may be any cross-platform concerns to watch out for here, but I'm just generally

Re: [PHP-DEV] Add ReflectionFunctionAbstract::isAnonymous()

2021-10-22 Thread Dylan K. Taylor
On Fri, 22 Oct 2021 14:19:23 +0100 Claude Pache wrote > > Le 21 oct. 2021 à 01:12, Dylan K. Taylor a écrit : > > Hi all, > > Given the addition of Closure::fromCallable() and the upcoming first-class > callable syntax in 8.1, it seems slightly pro

[PHP-DEV] Add ReflectionFunctionAbstract::isAnonymous()

2021-10-20 Thread Dylan K. Taylor
Hi all, Given the addition of Closure::fromCallable() and the upcoming first-class callable syntax in 8.1, it seems slightly problematic that there's no simple way to tell by reflection if a Closure refers to an anonymous function or not. ReflectionFunctionAbstract::isClosure() (perhaps somewh