This commit is contained in:
Shish 2023-02-16 20:29:21 +00:00
parent 0f69c9de45
commit e551e74741

View file

@ -80,7 +80,7 @@ class LogConsole extends Extension
} else {
$str = "$str\n";
}
if (!defined("UNITTEST") && PHP_SAPI !== 'cli' || PHP_SAPI !== 'phpdbg') {
if (!defined("UNITTEST") && PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg') {
$fp = fopen("/dev/tty", "w");
fwrite($fp, $str);
fclose($fp);