- Adding note that the function does not use much memory unless you have output_buffering enabled. Hopefully this will help stem the tide of comments about weird looped fread() calls.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@325523 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Paul Reinheimer 2012-05-03 21:57:45 +00:00
parent 098fcff39a
commit 0d7e2a3615

View file

@ -101,10 +101,19 @@ if (file_exists($file)) {
</refsect1>
<refsect1 role="notes">
<note>
<para>
<function>readfile</function> will not present any memory issues,
even when sending large files, on its own. If you encounter an
out of memory error ensure that output buffering is off with
<function>ob_get_level</function>.
</para>
</note>
&reftitle.notes;
&tip.fopen-wrapper;
&note.context-support;
</refsect1>
<refsect1 role="seealso">