diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2023-04-21 21:40:20 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2023-04-21 21:40:20 +0200 |
| commit | bebb15613130e676fb7cc1cb4cf83f605d44c6dc (patch) | |
| tree | f4b58fa3fa4f4661bfe74cf8ce099f02df63edfb | |
| parent | 3d4e82213089a7d7b2c2a17b22cb3eeba302fb7b (diff) | |
| download | phinde-bebb15613130e676fb7cc1cb4cf83f605d44c6dc.tar.gz phinde-bebb15613130e676fb7cc1cb4cf83f605d44c6dc.zip | |
Do not use STDOUT and STDERR constants
.. they do not exist in webserver context
| -rw-r--r-- | src/phinde/Log.php | 4 |
1 files 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'] != '' |
