From: Christian Weiske Date: Fri, 21 Apr 2023 19:40:20 +0000 (+0200) Subject: Do not use STDOUT and STDERR constants X-Git-Url: https://git.cweiske.de/phinde.git/commitdiff_plain/HEAD Do not use STDOUT and STDERR constants .. they do not exist in webserver context --- 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'] != ''