note 33197 added to function.fputs

From: Date: Wed, 18 Jun 2003 22:31:42 +0000
Subject: note 33197 added to function.fputs
Groups: php.notes 
Request: Send a blank email to php-notes+get-50606@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.fputs.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33197 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33197&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33197&report=yes

« previous php.notes (#50606) next »