I have a PHP script that runs as an API endpoint with a long task.
I use output buffering to test whether the endpoint can satisfy the request and close the output with a simple message, then proceed to run the long task and send a confirmation email at the end.
The task never completes.
Are there application logs for PHP that I can check? The weird part is that it seems the task is killed despite having:
@ignore_user_abort(true);
@set_time_limit(0);
@ini_set("memory_limit", "2048M");
If I disable output buffering and emit log messages as output during processing, everything runs fine and the task completes. This confirms it is neither an application error nor a memory issue.
TIA