|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-04-02 10:59 UTC] sniper@php.net
[2003-04-07 18:43 UTC] sniper@php.net
[2003-04-11 08:41 UTC] c dot ferrari at gmx dot net
[2003-04-23 04:18 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 08:00:01 2025 UTC |
Since PHP version 4.3.1 an also in version 4.3.2RC1 I have found some problems with the function fputs() fwrite(). If you write only one character the functinon write two!! Example 1: <?php $fp=fopen("test.txt","w+"); fputs($fp, "*"); fclose($fp); ?> Result: With a Hexeditor you can see 2A 0A. Example 2: <?php $fp=fopen("test.txt","w+"); fputs($fp, "**"); fclose($fp); ?> Result: With a Hexeditor you can see the correct result 2A 2A.