Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When the domain have On-hold (generic) status, then isAvailable() method returns TRUE ! #50

Open
NabiKAZ opened this issue Feb 13, 2016 · 2 comments

Comments

@NabiKAZ
Copy link

NabiKAZ commented Feb 13, 2016

When the domain have On-hold (generic) status, then isAvailable() method returns TRUE !

@NabiKAZ
Copy link
Author

NabiKAZ commented Apr 7, 2017

And also when in redemption period status, return TRUE!

@NabiKAZ
Copy link
Author

NabiKAZ commented Apr 8, 2017

I resolved with this bad code temporary:

$whois = new Phois\Whois\Whois($domain);

$info = $whois->info();

if ($whois->isAvailable() AND strpos($info, 'No match for') !== 0) {
    echo "Domain is available\n";
} else {
    echo "Domain is registered\n";
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant