MantisBT: master-2.27 5ff8bb6a

Author Committer Branch Timestamp Parent
dregad dregad master-2.27 2024-10-07 12:37 master-2.27 28962e8b
Affected Issues  0017460: Email notifications are sent in batches
 0034634: Non-existing issue number does not throw a 404 in the UI
 0034828: HTTP response code not set on errors when using FastCGI
Changeset

Move fastcgi_finish_request() to email shutdown function

This was originally added to html_end() to improve performance when
using php-fpm and sending mail synchronously [1], back when the function
was calling email_send_all(), i.e. before issue 0017460 moved that to
email_shutdown_function().

This is now causing issues as the HTTP response code is not set when an
error occurs and FastCGI is used.

Fixes 0034828, 0034634

[1]: see commit cea405ccf228fd2c6ac694574a74e87396b14f1f

mod - core/email_api.php Diff File
mod - core/html_api.php Diff File