note 50936 added to function.fwrite

From: Date: Mon, 14 Mar 2005 14:34:28 +0000
Subject: note 50936 added to function.fwrite
Groups: php.notes 
Request: Send a blank email to php-notes+get-86402@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/function.fwrite.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50936 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50936&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50936&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50936&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50936&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50936&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50936&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86402) next »