note 79733 added to function.fread
| From: | phpnet at povaddict dot com dot ar dot invalid | Date: | Mon, 10 Dec 2007 19:14:31 +0000 |
| Subject: | note 79733 added to function.fread | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-133306@lists.php.net to get a copy of this message | ||
@kai, Blagovest, and probably others:
Of course fread shouldn't be trusted to read the whole length you requested, that's a
basic socket concept. And the manual says so: "Reading stops as soon as a packet becomes
available (for network streams)"
In fact I'm having a problem where fread sometimes blocks even though there is *some* data
available (it should return as soon as there is 1 byte); *that* shouldn't happen.
----
Server IP: 190.2.55.3
Probable Submitter: 201.212.44.26
----
Manual Page -- http://www.php.net/manual/en/function.fread.php
Edit -- https://master.php.net/note/edit/79733
Del: integrated -- https://master.php.net/note/delete/79733/integrated
Del: useless -- https://master.php.net/note/delete/79733/useless
Del: bad code -- https://master.php.net/note/delete/79733/bad+code
Del: spam -- https://master.php.net/note/delete/79733/spam
Del: non-english -- https://master.php.net/note/delete/79733/non-english
Del: in docs -- https://master.php.net/note/delete/79733/in+docs
Del: other reasons-- https://master.php.net/note/delete/79733
Reject -- https://master.php.net/note/reject/79733
Search -- https://master.php.net/manage/user-notes.php