Problem with output buffering in PHP 4.0.6 and Apache/1.3.20
| From: | ing.Martin Prášek | Date: | Fri, 09 Aug 2002 16:34:42 +0000 |
| Subject: | Problem with output buffering in PHP 4.0.6 and Apache/1.3.20 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-111839@lists.php.net to get a copy of this message | ||
Hi..
I have found a strange problem. I try to use php output buffering, but I found this problem.
Working with small amount of data everything is fine. But If I set example script like this:
<?
function callback($buffer)
{
return do_something_with($buffer);
}
ob_start("callback")
.
.
do_something_that_produce_big_output() // more than 1.5 MB
.
.
.
ob_end_flush();
?>
Everything works fine when $buffer < approx 1.5 Mb, but if the size of the output, that need to
be bufered exceeded some strange limit aprox 1593400 bytes, buffer is cut to that length and rest of
the output is lost(!). I look in docs and manuals, but found nothing about it. Is it posssible to
set large size for the output buffering operations or this strange limit is hard coded and cant be
exceeded ??? I try to play with PHP.INI or add swapspace and DIMs memory with no effect.....
Please help.
---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.381 / Virová báze: 214 - datum vydání: 2.8.2002