Merge pull request #19 from forsureitsme/patch-2

Failsafe stream_select
This commit is contained in:
David Saez Padros 2021-06-30 07:04:21 +02:00 committed by GitHub
commit e171da7c52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -194,7 +194,7 @@ class WhoisClient {
while (!feof($ptr))
{
if (stream_select($r,$null,$null,$this->STIMEOUT))
if (@stream_select($r,$null,$null,$this->STIMEOUT)!==false)
{
$raw .= fgets($ptr, $this->BUFFER);
}