#20772 [Com]: Output control + memory limit + big file read
| From: | busia at tiscalinet dot it | Date: | Mon, 02 Dec 2002 22:50:34 +0000 |
| Subject: | #20772 [Com]: Output control + memory limit + big file read | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-26428@lists.php.net to get a copy of this message | ||
ID: 20772
Comment by: busia@tiscalinet.it
Reported By: busia@tiscali.it
Status: Open
Bug Type: Output Control
Operating System: redhat 7.0
PHP Version: 4.3.0RC2
New Comment:
In the script the last "}" is to delete.
Previous Comments:
------------------------------------------------------------------------
[2002-12-02 16:43:37] busia@tiscali.it
If I try to run this script the server simply exit without giving me
anything.
<?
echo "A";
$fd=fopen("aaa/temp", "wb");
fpassthru($fd);
echo "B";
}
?>
The server is configured with output buffering activated (gz_handler),
memory limit enabled (8MB) and the temp file is bigger than 8MByte
I have understand that the problem that the script excedeed the memory
limit and adding, as first line,
ob_end_clean();
the script works, but in the error log there isn't a fatal error or a
warning, nothing; also the access log doesn't log the hit. It's
possible to add a fatal error to let the programmer know what is the
problem.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20772&edit=1