#408: Allow streams as response content
-------------------------+--------------------------------------------------
Reporter: david | Owner: david
Type: enhancement | Status: new
Priority: normal | Milestone: 0.11
Component: response | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
{{{
$res->setContent(fopen('/my/image/file'));
}}}
will then be {{{fpassthru()}}}'d in {{{Response::sendContent()}}} - just
have to pay attention to caching, where responses are serialized, so
{{{__sleep()}}} has to store {{{stream_get_meta_data()}}} info, and
{{{__wakeup()}}} must restore that.
--
Ticket URL: <http://trac.agavi.org/ticket/408>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets