Do not create STDIN/STDOUT streams

This commit is contained in:
Thomas Gelf 2013-10-22 14:14:47 +00:00
parent 16124989dd
commit add8c4094b
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}