From 60a6e92231378dc20234128bfdb545bb04d2b1e9 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 11 Feb 2024 21:27:38 +0000 Subject: [PATCH] [log_console] silence error if we can't open the tty --- ext/log_console/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/log_console/main.php b/ext/log_console/main.php index 235f3459..835eee7f 100644 --- a/ext/log_console/main.php +++ b/ext/log_console/main.php @@ -80,7 +80,7 @@ class LogConsole extends Extension $str = "$str\n"; } if (!defined("UNITTEST") && PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg') { - $fp = fopen("/dev/tty", "w"); + $fp = @fopen("/dev/tty", "w"); if ($fp) { fwrite($fp, $str); fclose($fp);