ID: 20772
User updated by: [EMAIL PROTECTED]
-Summary: Output control + memory limit + big file read
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Filesystem function related
Operating System: redhat 7.0
PHP Version: 4.3.0RC2
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2002-12-03 15:38:46] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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.
------------------------------------------------------------------------
[2002-12-03 06:43:53] [EMAIL PROTECTED]
to add to the summary:
php 4.3.0RC2 without output buffering : "unable to
find the server" error.
------------------------------------------------------------------------
[2002-12-03 06:41:46] [EMAIL PROTECTED]
Errata corridge:
The script works well adding the "ob_end_clean()" function only if I
use php 4.2.3.
Using php 4.3.0RC2 the script give me a blank document.
I have tried to set
-----------------------
php_flag output_buffering Off
-----------------------
in .htaccess and to comment the "ob_and_clean()" but the script give me
a "unable to find the server" error now (this is also the error that
the script gave me with output buffering activated and no
"ob_end_clean" in php 4.2.3)
Summary:
php 4.3.0RC2 + output buffering on (without "ob_end_clean()"): "unable
to find the server" error.
php 4.3.0RC2 + output buffering on (with "ob_end_clean()"): "document
contains no data" error.
php 4.2.3 + output buffering on (without "ob_end_clean()"): "unable to
find the server" error.
php 4.2.3 + output buffering on (with "ob_end_clean()"): all is ok.
I have experienced the same "document contains no data" in other
scripts in which i used the "ob_end_clean()" function to deactivate the
output buffering (when I cannot use .htaccess) but these scripts worked
well with php 4.2.3.
Andrea Busia
------------------------------------------------------------------------
[2002-12-02 16:50:33] [EMAIL PROTECTED]
In the script the last "}" is to delete.
------------------------------------------------------------------------
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