PHP fastcgi_finish_request with MAMP?

All MAMP discussions around troubleshooting and anything related to MAMP. Be as detailed as possible here when posting an issue.
Post Reply
WrongSizeGlass
Posts: 6
Joined: Wed Jul 10, 2024 1:30 pm

PHP fastcgi_finish_request with MAMP?

Post by WrongSizeGlass »

Hi,
Has anyone been able to get fastcgi_finish_request() to work in MAMP?

No matter what I've tried, when I call the function I get "Fatal error: Uncaught Error: Call to undefined function fastcgi_finish_request()". When I check "function_exists('fastcgi_finish_request')" it always returns false.

I've tried asking MAMP support, but they are simply dreadful. Weeks between replies, saying it works on their end and they can't reproduce my problem. Then they say it doesn't work and won't be fixed in the imminent MAMP Pro 7.

I've tried running in CGI mode (phpinfo: "Server API CGI/FastCGI") but still get the same results. I've even added "FastCgiServer /Applications/MAMP/fcgi-bin/php8.1.13.fcgi" to the Apache config file.

I'm running MAMP Pro 6.9 on macOS 14 (Sonoma).


Thanks,
WSG
Post Reply