#42379 [Fbk->Csd]: flush() will eat my server's memory!!
| From: | mika at netstock dot net | Date: | Fri, 31 Aug 2007 01:51:02 +0000 |
| Subject: | #42379 [Fbk->Csd]: flush() will eat my server's memory!! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-116905@lists.php.net to get a copy of this message | ||
ID: 42379
User updated by: mika at netstock dot net
Reported By: mika at netstock dot net
-Status: Feedback
+Status: Closed
Bug Type: Output Control
Operating System: freebsd-6.2
PHP Version: 5.2.3
New Comment:
i got answer,it is apache bugs!!!
Previous Comments:
------------------------------------------------------------------------
[2007-08-24 10:21:31] jani@php.net
How about you first upgrade your apache to something more recent.
And then you really need to provide the configure line you used to
configure PHP. Also: using "register_globals = On" is something you
really shouldn't be doing..
------------------------------------------------------------------------
[2007-08-23 23:32:08] mika at netstock dot net
you probably need excute it for a while (5 min maybe!!)
and $var maybe need to put some data inside
at client browser, every things looks fine
i didn't get any error but memory leak
it seem call sapi or something .....
------------------------------------------------------------------------
[2007-08-23 10:51:23] jani@php.net
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..
------------------------------------------------------------------------
[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