Ticket #408 (closed enhancement: fixed)
Allow streams as response content
| Reported by: | david | Owned by: | david |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11 |
| Component: | response | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Patch attached: |
Description
$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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

