PHP/Compat

* avoid using "echo" to write to CLI as php mistakes it for sent headers (see php-src #12303)
 * as we are using fwrite now, errors are written to STDERR instead of STDOUT
 * fixes an issue where reloading the config would cause "ini_set(): Session ini settings cannot be changed after headers have already been sent" to be spammed
This commit is contained in:
Sarjuuk
2024-07-30 19:51:57 +02:00
parent b5c2f7a296
commit 1b2b773663
3 changed files with 10 additions and 9 deletions

View File

@@ -26,6 +26,7 @@ if (CLISetup::getOpt('delete')) // generated with TEMPOR
CLISetup::runInitial();
die("\n");
fwrite(STDOUT, "\n");
exit;
?>