#20772 [Opn->Bgs]: fpassthru() loads entire file in RAM
| From: | busia at tiscali dot it | Date: | Thu, 05 Dec 2002 18:11:52 +0000 |
| Subject: | #20772 [Opn->Bgs]: fpassthru() loads entire file in RAM | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-26773@lists.php.net to get a copy of this message | ||
ID: 20772
User updated by: busia@tiscali.it
Reported By: busia@tiscali.it
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: redhat 7.0
PHP Version: 4.3.0RC2
New Comment:
The bug didn't concern fpassthru, I have seen this is an output control
bug and I have posted a new bug submission.
Previous Comments:
------------------------------------------------------------------------
[2002-12-05 12:02:08] busia@tiscali.it
I know that "the lack of the memory limit error message is directly
related to bug #20802", I reported bug #20802! ;)
I'm interested to know and the correct the fpassthru problem with this
bug report.
------------------------------------------------------------------------
[2002-12-04 18:15:35] iliaa@php.net
The lack of the memory limit error message is directly related to bug
#20802.
------------------------------------------------------------------------
[2002-12-03 16:40:09] busia@tiscali.it
I have changed this bug report to analyze simply the "fpassthru()" bug
and I have opened to other bug reports regarding ob_end_clean and
memory limit problems.
These seem to be independent bugs.
------------------------------------------------------------------------
[2002-12-03 15:38:46] busia@tiscali.it
Because the problem seems to be a "fpassthru" problem, I have changed
the category from "output control" to "filesystem function"
------------------------------------------------------------------------
[2002-12-03 12:26:57] busia@tiscalinet.it
Using php4.3.0RC2:
Now I have put a .htaccess file with
------------------
php_flag output_buffering Off
------------------
and added
ini_set('memory_limit','100M');
at the beginning of the script
and now it works but the script is using 40Mbyte RAM, why?
The
fpassthru($fd)
function seems to load the complete file in memory but in version 4.2.3
it sent it directly to the output without loading it in memory.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/20772
--
Edit this bug report at http://bugs.php.net/?id=20772&edit=1