From 24fff22f9b73798610987c765c0659742229b472 Mon Sep 17 00:00:00 2001 From: Pedro Cardoso da Silva Date: Tue, 29 Jun 2021 16:27:40 -0300 Subject: [PATCH] Failsafe stream_select Fixes #9 --- src/whois.client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/whois.client.php b/src/whois.client.php index 651f5d1..70004f4 100644 --- a/src/whois.client.php +++ b/src/whois.client.php @@ -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); }