From: dietrich dot ayala at foundstone dot com Operating system: windows 2000 PHP version: 4.3.0 PHP Bug Type: Output Control Bug description: echo/print/flush doesn't work while socket open
In this example, php doesn't flush it's buffer until the after fclose(); I'm testing w/ a 10mb text file. <?php if (($f = fopen($very_large_file, 'r')) != 0) { while ( !feof($f) ) { echo fread($f, 4096); flush(); } fclose($f); } ?> -- Edit bug report at http://bugs.php.net/?id=22789&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22789&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22789&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22789&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22789&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22789&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22789&r=support Expected behavior: http://bugs.php.net/fix.php?id=22789&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22789&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22789&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22789&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22789&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22789&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22789&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22789&r=gnused