#751: stdout/stderror log appenders are broken
---------------------------------------+------------------------------------
Reporter: MikeSeth | Owner:
Type: defect | Status: new
Priority: low | Milestone: 0.11.1
Component: logging | Version: 0.11.0
Severity: minor | Resolution:
Keywords: stderr stdout logging bug | Has_patch: 1
---------------------------------------+------------------------------------
Changes (by impl):
* owner: dominik =>
* has_patch: 0 => 1
Comment:
Here's some strange behavior:
{{{
~ % php -r 'var_dump(fopen("php://stdout", "a"));'
Warning: fopen(): cannot seek on a pipe in Command line code on line 1
resource(5) of type (stream)
}}}
The PHP manual states that the php:// stream wrapper supports
php://stdout, php://stderr, php://output, php://memory and php://temp for
appending. Seems like it should be able to do this without a warning. Oh
well. (http://php.net/wrappers.php)
AFAIK, there's no way to tell whether a given stream supports appending or
not programmatically. Which kinda sucks. Anyway, see attached -- not
tested, but seems like an okay solution to me.
--
Ticket URL: <http://trac.agavi.org/ticket/751#comment:3>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets