Re: readfile() memory usage
| From: | Paul Reinheimer | Date: | Tue, 01 May 2012 18:44:00 +0000 |
| Subject: | Re: readfile() memory usage | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-60404@lists.php.net to get a copy of this message | ||
Hi,
> It sounds like it. In that case the memory spike is happening in the output
> buffer, where the file is streamed into by readfile() in 8K chunks until the
> output buffer explodes. :-)
>
> So, I think we're back to "urban legend" territory.
That's good to know. Thanks, and my apologies for adding confusion to the issue.
One question, with a value of 4096 for the ini directive, shouldn't it
be flushing data to the client long before I run into memory issues?
What have I missed here.
thanks
paul