note 50936 deleted from function.fwrite by sean
| From: | sean@php.net | Date: | Fri, 18 Mar 2005 19:04:46 +0000 |
| Subject: | note 50936 deleted from function.fwrite by sean | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-86635@lists.php.net to get a copy of this message | ||
Note Submitter: netgert at hotmail dot com
----
I want to note that fwrite() is binary-safe with strings only - you cannot write binary data with it
(ie 32-bit integers, 1 (d)word etc)
Trying to fwrite() an int will cause the int to be converted into string and then written as string.
The same goes with floats
I find this behaviour appalling - data should be of mixed type and no type-casting should occur