run egw destructor explizit for merge-downloads to allow eg. notifications emails in shutdown handler

This commit is contained in:
ralf 2022-06-22 09:57:33 +02:00
parent 57263bb54b
commit 03b3b7be1e

View File

@ -2040,6 +2040,10 @@ abstract class Merge
}
Api\Header\Content::type($header['name'], $header['mime'], $header['filesize']);
readfile($result);
// run egw destructor now explicit, in case a (notification) email is send via Egw::on_shutdown(),
// as stream-wrappers used by Horde Smtp fail when PHP is already in destruction
$GLOBALS['egw']->__destruct();
exit;
}