#19711 [NEW]: fflush doesn't flushes to a file

From: Date: Wed, 02 Oct 2002 11:44:21 +0000
Subject: #19711 [NEW]: fflush doesn't flushes to a file
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21250@lists.php.net to get a copy of this message
From: thomasdkeller@web.de Operating system: Windows 2000 Server PHP version: 4.2.2 PHP Bug Type: Output Control Bug description: fflush doesn't flushes to a file Hi there! It _may_ be a bug, but i'm not sure, if I have anything forgot to write down, nevertheless the following code --- <?php for($i=0;$i<1000;$i++) { echo "foo "; } $fp = fopen("tmp.txt","w+"); fflush($fp); fclose($fp); ?> --- does _not_ work like my intention was (create new file called tmp.txt, flush output (1000 times "foo ") into it and close the file). Instead of this it takes longer than normal to execute the script, then it flushes the output to the browser, creates a new file and leaves it empty (obviously fflush returns "1" for successful). I've searched the internet, didn't found anything. Also your documentation has no example for this function (if I coded it wrong). My system: Apache 1.3.26. PHP (with standard Out-Of-The-Box modules) as module, all read/ write access Thanks in advance, Thomas Keller. -- Edit bug report at http://bugs.php.net/?id=19711&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19711&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19711&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19711&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19711&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19711&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19711&r=support Expected behavior: http://bugs.php.net/fix.php?id=19711&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19711&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19711&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19711&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19711&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=19711&r=dst

« previous php.bugs (#21250) next »