note 49428 deleted from function.fputs by nlopess
| From: | nlopess@php.net | Date: | Thu, 03 Feb 2005 10:04:39 +0000 |
| Subject: | note 49428 deleted from function.fputs by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-84415@lists.php.net to get a copy of this message | ||
Note Submitter: andreas dot schmeiler at rtlnewmedia dot de
----
well, well.. i experienced some serious trouble with fputs, fgets and fwrite on a unix-platform.
using fputs, fgets or fwrite with the optional length parameter
should be binary safe, but it is not on my system. Data always is cut off behind the 0-byte.
The only way to fix it, was to encode the binary data, and replacing the 0-bytes. of course, to read
the file, you must do the decoding after reading the file-contents.
I have no information about OS and php-Version on that system, all status information variables are
switched off.
Maybe that's a bug in some old php Version, or maybe something OS dependent. Just wanted to
report here.
Greetings
Andreas