note 33197 deleted from function.fputs by didou
| From: | didou@php.net | Date: | Sun, 09 Nov 2003 15:18:25 +0000 |
| Subject: | note 33197 deleted from function.fputs by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-60171@lists.php.net to get a copy of this message | ||
Note Submitter:
----
fputs/fwrite doesn't seem to care about the length for integers. Example:
$MyInt = 2;
fwrite($fh, $MyInt, 2);
The actual number of bytes written is 1 byte. When reading back for the file, this is hazardous.