#23658 [NEW]: still problem with fwrite() , fputs()
| From: | c dot ferrari at gmx dot net | Date: | Fri, 16 May 2003 10:01:42 +0000 |
| Subject: | #23658 [NEW]: still problem with fwrite() , fputs() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-39782@lists.php.net to get a copy of this message | ||
From: c dot ferrari at gmx dot net
Operating system: XP Home
PHP version: 4.3.2RC3
PHP Bug Type: Output Control
Bug description: still problem with fwrite() , fputs()
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
--------------------------------------------------------
--
Edit bug report at http://bugs.php.net/?id=23658&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23658&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23658&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23658&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23658&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23658&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23658&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23658&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23658&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23658&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23658&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23658&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23658&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23658&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23658&r=gnused