#30831 [NEW]: fwrite

From: Date: Thu, 18 Nov 2004 16:30:59 +0000
Subject: #30831 [NEW]: fwrite
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-69225@lists.php.net to get a copy of this message
From: parser at 21cn dot com Operating system: redhat linux PHP version: 4.3.8 PHP Bug Type: Output Control Bug description: fwrite 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 bug report at http://bugs.php.net/?id=30831&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30831&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30831&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30831&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30831&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30831&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30831&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30831&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30831&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30831&r=support Expected behavior: http://bugs.php.net/fix.php?id=30831&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30831&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30831&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30831&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30831&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30831&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30831&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30831&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30831&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30831&r=mysqlcfg

« previous php.bugs (#69225) next »