Note that dio_read on Windows (other platforms unknown) will not timeout if there is no data to read. There is no way to specify a timeout or do a non-blocking read on Windows.(PHP 4 >= 4.2.0, PHP 5 < 5.1.0)
dio_read — Lit les octets dans un fichier
   dio_read() lit et retourne
   len octets dans le fichier représenté par
   la ressource fd.
  
fdLa ressource de fichier retournée par dio_open().
lenLe nombre d'octets à lire. Si le paramètre n'est pas spécifié, dio_read() lit un bloc de 1 ko.
   Les octets lus de fd.
  
Note that dio_read on Windows (other platforms unknown) will not timeout if there is no data to read. There is no way to specify a timeout or do a non-blocking read on Windows.