mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
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:
@@ -26,6 +26,7 @@ if (CLISetup::getOpt('delete')) // generated with TEMPOR
|
||||
|
||||
CLISetup::runInitial();
|
||||
|
||||
die("\n");
|
||||
fwrite(STDOUT, "\n");
|
||||
exit;
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user