Reading stops when length bytes have been read or EOF (end of file) reached, whichever comes first. For TCP stream reading can stop _before_ conditions abbowe.
----
Manual Page -- http://www.php.net/manual/en/function.fread.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33577
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33577&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33577&report=yes
[ Editor's Note: It *can* stop before because the behavior of fread() has been corrected with PHP 4.3.2 to stop reading on (A) Whole packet, (B) Maxlen bytes, or (C) EOF, whichever comes first. This change will be reflected in the next build of the manual. ]
Reading stops when length bytes have been read or EOF (end of file) reached, whichever comes first. For TCP stream reading can stop _before_ conditions abbowe.
--was--
Reading stops when length bytes have been read or EOF (end of file) reached, whichever comes first. For TCP stream reading can stop _before_ conditions abbowe.
http://www.php.net/manual/en/function.fread.php
Note Submitter: rozhik
----
[ Editor's Note: It *can* stop before because the behavior of fread() has been corrected with PHP 4.3.2 to stop reading on (A) Whole packet, (B) Maxlen bytes, or (C) EOF, whichever comes first. This change will be reflected in the next build of the manual. ]
Reading stops when length bytes have been read or EOF (end of file) reached, whichever comes first. For TCP stream reading can stop _before_ conditions abbowe.