#30520 [Opn->Bgs]: readfile needs too much memory
| From: | iliaa@php.net | Date: | Wed, 27 Oct 2004 16:55:39 +0000 |
| Subject: | #30520 [Opn->Bgs]: readfile needs too much memory | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-68399@lists.php.net to get a copy of this message | ||
ID: 30520
Updated by: iliaa@php.net
Reported By: spacefreak at rheintalchat dot ch
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Gentoo Linux (Kernel 2.6.8.1)
PHP Version: 4.3.9
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
no surprises here, the function uses mmap.
Previous Comments:
------------------------------------------------------------------------
[2004-10-21 21:43:09] spacefreak at rheintalchat dot ch
Description:
------------
I've got a big problem. I use the readfile function for share any files
over the webserver. I use it, because I need user authentication.
It works nice with small files.
Actual result:
--------------
The problem is that. PHP will load the hole file from the harddisc into
the memory. If I use the fpassthru function, the memory will be freed,
but PHP use the hole memory for buffering.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30520&edit=1