That doesn't work on Windows though; it appears that
{{{stream_get_meta_data(STDIN)}}} will report {{{false}}} for "seekable"
if there input (since {{{STDIN}}} does not support seeks), and
{{{true}}} if there is no input. Verified to work on Windows, Mac OS and
Linux.
--
Ticket URL: <http://trac.agavi.org/ticket/1437>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
tic...@lists.agavi.org
http://lists.agavi.org/mailman/listinfo/tickets
Comment(by david):
The purpose of this is of course to have have the {{{read_stdin}}} option
default to {{{true}}}, since we can detect situations where there is no
input, so there is no overhead (empty file or w/e) involved.
--
Ticket URL: <http://trac.agavi.org/ticket/1437#comment:1>
Comment(by david):
(In [4841]) comment to explain why stream_set_blocking() is used in
AgaviConsoleRequest, refs #1412, #1437 and #480
--
Ticket URL: <http://trac.agavi.org/ticket/1437#comment:2>
* status: new => closed
* resolution: => fixed
Comment:
(In [4864]) Automatically read from STDIN in AgaviConsoleRequest, closes
#1437 and refs #1436 and #1412
--
Ticket URL: <http://trac.agavi.org/ticket/1437#comment:3>
Comment(by david):
(In [4909]) Make sure STDIN is defined before attempting to read it (it is
not available when the PHP script itself is read via STDIN, which is how
PHPUnit runs isolated tests), refs #1437
--
Ticket URL: <http://trac.agavi.org/ticket/1437#comment:4>