mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-06 07:57:02 +03:00
ERROR: Undefined constant "MailSo\Log\Drivers\STDERR" #965
This commit is contained in:
parent
2201060888
commit
4bd9535219
1 changed files with 3 additions and 0 deletions
|
|
@ -20,6 +20,9 @@ class StderrStream extends \MailSo\Log\Driver
|
||||||
{
|
{
|
||||||
protected function writeImplementation($mDesc) : bool
|
protected function writeImplementation($mDesc) : bool
|
||||||
{
|
{
|
||||||
|
if (!\defined('STDERR')) {
|
||||||
|
\define('STDERR', \fopen('php://stderr', 'wb'));
|
||||||
|
}
|
||||||
return 0 < \fwrite(STDERR, $mDesc . "\n");
|
return 0 < \fwrite(STDERR, $mDesc . "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue