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
1 changed files with 1 additions and 1 deletions

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);
}