Bug #1620: fwrite/fputs adds unwanted newline
| From: | cliff dot wright at boeing dot com | Date: | Mon, 28 Jun 1999 23:17:59 +0000 |
| Subject: | Bug #1620: fwrite/fputs adds unwanted newline | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-7736@lists.php.net to get a copy of this message | ||
From: cliff.wright@boeing.com
Operating system: Linux
PHP version: 3.0.9
PHP Bug Type: Misbehaving function
Bug description: fwrite/fputs adds unwanted newline
fwrite/fputs seems to always add a single newline whenever it
sees 1 or more newlines in the string. This occures even when
restricting output to a single character.
e.g.
fputs($fp,"\n",1);
fputs($fp,"something else");
This will output two newlines instead of one. I could see no way to
output a single newline (I even tried some urldecode combinations).