#42379 [Opn->Fbk]: flush() will eat my server's memory!!
| From: | jani@php.net | Date: | Thu, 23 Aug 2007 10:51:24 +0000 |
| Subject: | #42379 [Opn->Fbk]: flush() will eat my server's memory!! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-116539@lists.php.net to get a copy of this message | ||
ID: 42379
Updated by: jani@php.net
Reported By: mika at netstock dot net
-Status: Open
+Status: Feedback
Bug Type: Output Control
Operating System: freebsd-6.2
PHP Version: 5.2.3
New Comment:
Only thing I get is this output:
Notice: Undefined variable: var in /opt/www/t.php on line 4
And no leak. How about providing us a bit more information and a script
that does not have any errors/notices in it? Your configure line would
be nice to know. And what extensions (if any) you load in php.ini..
Previous Comments:
------------------------------------------------------------------------
[2007-08-22 13:21:04] mika at netstock dot net
Description:
------------
when i use flush() or ob_implicit_flush() to push data to browser it
will keep eating my server's memory like 4k 4k 4k......and another 4k
..
and my apache is 2.0.59
Do anyone can help me!!!!
Reproduce code:
---------------
<?
while{1){
echo "$var";
flush();
sleep(1);
}
?>
or
<?
ob_implicit_flush(1);
while{1){
echo "$var";
sleep(1);
}
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42379&edit=1