From bebb15613130e676fb7cc1cb4cf83f605d44c6dc Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Fri, 21 Apr 2023 21:40:20 +0200 Subject: [PATCH] Do not use STDOUT and STDERR constants .. they do not exist in webserver context --- src/phinde/Log.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/phinde/Log.php b/src/phinde/Log.php index 36a126b..7ae0d82 100644 --- a/src/phinde/Log.php +++ b/src/phinde/Log.php @@ -5,7 +5,7 @@ class Log { public static function error($msg) { - static::log($msg, STDERR); + static::log($msg, 'php://stderr'); } public static function info($msg) @@ -15,7 +15,7 @@ class Log } } - public static function log($msg, $stream = STDOUT) + public static function log($msg, $stream = 'php://stdout') { if (isset($GLOBALS['phinde']['logfile']) && $GLOBALS['phinde']['logfile'] != '' -- 2.30.2