#751: stdout/stderror log appenders are broken
----------------------+-----------------------------------------------------
Reporter: MikeSeth | Owner: david
Type: defect | Status: new
Priority: low | Milestone: 0.11.1
Component: _OTHER_ | Version: 0.11.0
Severity: trivial | Keywords: stderr stdout logging bug
Has_patch: 0 |
----------------------+-----------------------------------------------------
Trying to use stdout/stderror log appenders which rely on the
``php://foo'' naming convention for PHP streams results in:
Fatal error: Uncaught exception 'AgaviLoggingException' with message
'Cannot open file "php://stderr", please check permissions on file or
directory.' in
/usr/share/php/agavi/logging/AgaviFileLoggerAppender.class.php:75
Stack trace:
#0 /usr/share/php/agavi/logging/AgaviFileLoggerAppender.class.php(115):
AgaviFileLoggerAppender->getHandle()
#1 /usr/share/php/agavi/logging/AgaviLogger.class.php(58):
AgaviFileLoggerAppender->write(Object(AgaviLoggerMessage))
<.. application stack frame ..>
This is because in AgaviFileLoggerAppender's getHandle() no consideration
is made towards the streams as the code asserts the file name passed to it
is a physical file.
--
Ticket URL: <http://trac.agavi.org/ticket/751>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets