php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30831 fwrite
Submitted: 2004-11-18 17:30 UTC Modified: 2004-12-03 01:00 UTC
From: parser at 21cn dot com Assigned:
Status: No Feedback Package: Filesystem function related
PHP Version: 4.3.8 OS: redhat linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: parser at 21cn dot com
New email:
PHP Version: OS:

 

 [2004-11-18 17:30 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-18 21:52 UTC] tony2001@php.net
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.


 [2004-12-03 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 05:01:30 2024 UTC