ID: 42379 User updated by: mika at netstock dot net Reported By: mika at netstock dot net -Status: Feedback +Status: Open Bug Type: Output Control Operating System: freebsd-6.2 PHP Version: 5.2.3 New Comment:
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 ..... Previous Comments: ------------------------------------------------------------------------ [2007-08-23 10:51:23] [EMAIL PROTECTED] 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