fix to let it work with PHP 4.1.0 - 4.3.1

This commit is contained in:
sparc 2005-10-10 15:03:04 +00:00
parent e50df27a79
commit 737fd690bf
3 changed files with 6 additions and 3 deletions

View file

@ -3,7 +3,8 @@
fixed queries to .net whois server,
added support for .pe domains,
fixed .se registration detection,
added requirements section in README
added requirements section in README,
fix to let it work with PHP 4.1.0 - 4.3.1
thanx to Speedywise
2005/10/09 Released phpWhois 4.0.1

View file

@ -29,7 +29,8 @@ phpWhois requires PHP 4.3.0 or better with OpenSSL support to
work properly. Without SSL support you will not be able to
query domains which do not have a whois server but that have
a https based whois. Also, you can run it in lower PHP versions
but without timeout control (see example.whois)
but without timeout control. phpWhois will not work with PHP
versions below 4.1.0
Installation
------------

View file

@ -101,7 +101,8 @@ class WhoisClient {
return(array());
}
stream_set_timeout($ptr,$this->STIMEOUT);
if (version_compare(phpversion(),'4.3.0')>=0)
stream_set_timeout($ptr,$this->STIMEOUT);
if (isset($this->WHOIS_PARAM[$this->Query['server']]))
fputs($ptr, $this->WHOIS_PARAM[$this->Query['server']].trim($string)."\r\n");