frankenphp icon indicating copy to clipboard operation
frankenphp copied to clipboard

Consider implementing fastcgi_finish_request()?

Open withinboredom opened this issue 1 year ago • 1 comments

fastcgi_finish_request is often used to perform operations after a request is completed (such as sending an email). Should FrankenPHP implement this and/or create a similar function? There are pro/cons to implementing it with the same name (it will "just work" with existing code), and a con would be that if there are any differences in behavior, then things may not work as expected or code may use the existence of that function as a sentinel that it is running in a fastcgi context and do unexpected things.

I'd be happy to tackle implementing this, whatever is decided.

withinboredom avatar Oct 23 '22 12:10 withinboredom

Maybe could we add a frankenphp_finish_request() function to prevent any conflict?

dunglas avatar Oct 23 '22 14:10 dunglas