From: [EMAIL PROTECTED] Operating system: Windows 2000 SP2 PHP version: 4.1.1 PHP Bug Type: Output Control Bug description: the flush() does not flush the output buffer
here is the code i ran with command-line version of php: <? $asd=0; do { printf("asd: %d\n",$asd); flush(); sleep(1); $asd++;}while ($asd<5); ?> if it is executed on linux, it works as expected, that is it displays asd every second. on windows though, i only see the whole output after 5 seconds. -- Edit bug report at http://bugs.php.net/?id=15646&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15646&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15646&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15646&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15646&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15646&r=support Expected behavior: http://bugs.php.net/fix.php?id=15646&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15646&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=15646&r=submittedtwice