View Full Version : PHP PEAR - Net_DNS with PHP 5 ?

04-09-2008, 07:15 AM
Anyone know where to modify in PEAR Net_DNS to make it works for PHP 5?


$ndr = new Net_DNS_Resolver();

$answer = $ndr->search("cnet.com", "MX");


echo "<br>";


The example PHP code gives lots of Strict Standards messages.. and a Fatal error.

Strict Standards: Declaration of Net_DNS_RR_A::rr_rdata() should be compatible with that of Net_DNS_RR::rr_rdata()

Strict Standards: Non-static method Net_DNS::classesbyname() should not be called statically, assuming $this from incompatible context

Fatal error: Call to a member function display() on a non-object in..