ID: 30831 Updated by: [EMAIL PROTECTED] Reported By: parser at 21cn dot com -Status: Open +Status: Feedback -Bug Type: Output Control +Bug Type: Filesystem function related Operating System: redhat linux PHP Version: 4.3.8 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2004-11-18 17:30:58] parser at 21cn dot com Description: ------------ PHP version:php-4.3.4 BUG:The function fwrite() use fwrite() will have error,but use error_log() is right Reproduce code: --------------- $handle=fopen($DirName."src_visit.txt","a"); $rs=fwrite($handle, $LOG_STRING); fflush($handle); fclose($handle); Expected result: ---------------- Don't always like this(error): 2004111215 d41d8cd98f00b204e9800998ecf8427e 5 33333 3 http://wap.unimoco.cn/hj/index.jsp wap.unimoco.cn /hj/index.jsp ID=3&ROOTID=5&ColumnID=33333 3 Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MyIE2) Actual result: -------------- The right result same to : 20041112151233 NULL 1330000AAAA 459 12055 13525 0 http://wap.unimoco.cn/hj/list.jsp wap.unimoco.cn /hj/list.jsp FeeFlag=hj&ID=13525&ROOTID=12055&PT= 12055 13677 0 http://wap.unimoco.cn/hj/list.jsp wap.unimoco.cn /hj/list.jsp FeeFlag=hj&ID=13677&ROOTID=12055&PT= 2 MOT-C510/1.01 UP.Browser/6.2.2.5 (GUI) MMP/1.0 UP.Link/5.1.2.9 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30831&edit=1