> Le 28 nov. 2019 à 00:33, David Rodrigues <david.pro...@gmail.com> a écrit :
>
> My real case is that I am initializing a static method that will register
> some shutdowns events (that are static methods too). This shutdown function
> should be private, to avoid execution at a public scope. As workaround I am
> keeping it as public.
Another workaround is to use a closure:
register_shutdown_function(function () { self::privateMethod(); });
—Claude
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php