note 114296 added to function.fwrite
| From: | dominic at varspool dot com | Date: | Tue, 04 Feb 2014 04:50:02 +0000 |
| Subject: | note 114296 added to function.fwrite | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-198403@lists.php.net to get a copy of this message | ||
Note that the optional $length argument is expected to be an int, and cannot be skipped by passing
null.
That is,
fwrite($handle, $string, null) is treated as fwrite($handle, $string,
0), and will write zero bytes, not the whole string.
----
Server IP: 202.78.240.39
Probable Submitter: 14.1.34.16
----
Manual Page -- http://php.net/manual/en/function.fwrite.php
Edit -- https://master.php.net/note/edit/114296
Del: integrated -- https://master.php.net/note/delete/114296/integrated
Del: useless -- https://master.php.net/note/delete/114296/useless
Del: bad code -- https://master.php.net/note/delete/114296/bad+code
Del: spam -- https://master.php.net/note/delete/114296/spam
Del: non-english -- https://master.php.net/note/delete/114296/non-english
Del: in docs -- https://master.php.net/note/delete/114296/in+docs
Del: other reasons-- https://master.php.net/note/delete/114296
Reject -- https://master.php.net/note/reject/114296
Search -- https://master.php.net/manage/user-notes.php