mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
- 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:
parent
098fcff39a
commit
0d7e2a3615
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
¬e.context-support;
|
||||
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
|
|
Loading…
Reference in a new issue