фейф
# Tests for end-of-file on a file pointer
feof ( resource $stream )
/*
Returns true if the file pointer is at EOF or
an error occurs (including socket timeout);
otherwise returns false.
*/
poinapole