git.cweiske.de
/
phinde.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not use STDOUT and STDERR constants
[phinde.git]
/
src
/
phinde
/
Log.php
diff --git
a/src/phinde/Log.php
b/src/phinde/Log.php
index 36a126b5f5f71a36a88cb98ec5f17472eb5e143b..7ae0d82ebc70324e2bd3b272b514ecea8619a3f8 100644
(file)
--- a/
src/phinde/Log.php
+++ b/
src/phinde/Log.php
@@
-5,7
+5,7
@@
class Log
{
public static function error($msg)
{
{
public static function error($msg)
{
- static::log($msg,
STDERR
);
+ static::log($msg,
'php://stderr'
);
}
public static function info($msg)
}
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'] != ''
{
if (isset($GLOBALS['phinde']['logfile'])
&& $GLOBALS['phinde']['logfile'] != ''