|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-05-16 09:46 UTC] sniper@php.net
[2003-05-16 10:31 UTC] wez@php.net
[2003-05-16 14:25 UTC] pollita@php.net
[2003-05-22 16:40 UTC] sniper@php.net
[2003-05-26 09:43 UTC] c dot ferrari at gmx dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 01:00:01 2025 UTC |
This is a sirious problem! Since Version 4.3.1 an above fputs() does not work as expectet. Try out the example above. Example: <?php $text=""; $text .= "11111"."\n"; $text .= "22222"."\n"; $text .= "33333"."\n"; $text .= "44444"."\n"; $text .= "55555"."\n"; $text .= "66666"."\n"; $text .= "77777"."\n"; $text .= "88888"."\n"; $text .= "99999"."\n"; $text .= "91111"."\n"; $fp=fopen("./log.txt","w+"); fputs($fp,$text."\n"); fputs($fp,"\n*"); fclose($fp); ?> My output looks like this: 11111 22222 33333 44444 55555 66666 77777 88888 99999 *1111 --------------------------------------------------------