ID:               19711
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         Output Control
 Operating System: Windows 2000 Server
 PHP Version:      4.2.2
 New Comment:

Also tested this under IIS and Win2k Server, same problem.


Previous Comments:
------------------------------------------------------------------------

[2002-10-02 06:44:21] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=19711&edit=1

Reply via email to