ID: 35914 Updated by: [EMAIL PROTECTED] Reported By: sqchen at citiz dot net -Status: Open +Status: Bogus Bug Type: Filesystem function related Operating System: redhat 7.3 PHP Version: 5.1.1 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2006-01-06 04:04:32] sqchen at citiz dot net Description: ------------ Do you this think fflush() realy works? plese see following code if you answer it's not a bug, please give me a example how to use fflush() correctly. Reproduce code: --------------- ----before fflush---- <?php $fp = fopen("1.txt", "w"); while(1) { fwrite($fp, "a"); sleep(1); } ?> ----after fflush---- <?php $fp1 = fopen("1.txt", "w"); $fp2 = fopen("2.txt", "w"); while(1) { fwrite($fp1, "a"); fflush($fp2); sleep(1); } ?> Expected result: ---------------- ---before fflush--- no contents in file "1.txt" until it's buffer is full ---after fflush--- "a a a a....." in file "2.txt" immediately Actual result: -------------- ---before fflush--- "a a a a....." in file "1.txt" immediately ---after fflush--- empty in file "2.txt" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35914&edit=1
