Ticket #751 (closed defect: fixed)
stdout/stderror log appenders are broken
| Reported by: | MikeSeth | Owned by: | david |
|---|---|---|---|
| Priority: | low | Milestone: | 0.11.2 |
| Component: | logging | Version: | 0.11.0 |
| Severity: | minor | Keywords: | stderr stdout logging bug |
| Cc: | Patch attached: | yes |
Description (last modified by david) (diff)
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))
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

