|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-12-02 16:43 UTC] busia at tiscali dot 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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 22 01:00:02 2025 UTC |
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.