Closed
Description
When data are short after reading with stream_socket_recvfrom() stream type changes from 'stream' to 'Unknown' and feof($stream) generates warning.
The possible fix is to add check of type before feof()
if ('' === $data || false === $data || get_resource_type($stream) == 'Unknown' || feof($stream))
Metadata
Metadata
Assignees
Labels
No labels