Do not create STDIN/STDOUT streams
This commit is contained in:
parent
16124989dd
commit
add8c4094b
|
@ -194,7 +194,7 @@ final class Logger
|
|||
$writer = new $writerClass($target);
|
||||
$writer->addFilter(new Zend_Log_Filter_Priority($priority));
|
||||
// Make sure the permissions for log target file are correct
|
||||
if ($type === 'Stream' && !file_exists($target)) {
|
||||
if ($type === 'Stream' && substr($target, 0, 6) !== 'php://' && !file_exists($target)) {
|
||||
touch($target);
|
||||
chmod($target, 0664);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue