Req #6899 [NEW]: Net::DNS - Delete record information wrong.

From: Date: Thu, 23 Feb 2006 03:22:33 +0000
Subject: Req #6899 [NEW]: Net::DNS - Delete record information wrong.
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-7598@lists.php.net to get a copy of this message
From: nosp4m at start dot no Operating system: Linux Package version: PHP version: Irrelevant Package: Documentation Bug Type: Feature/Change Request Bug description: Net::DNS - Delete record information wrong. Description: ------------ FORMERR when using: $rrDelete = new Net_DNS_RR("example.com. 0 IN A 192.0.34.166"); print_r on $rrDelete shows $rrDelete->class as 'IN'. This results in FORMERR. Reading the class, gives me the idea of arguments "delete" and "add" like this: $rrDelete = new Net_DNS_RR("example.com. 0 IN A 192.0.34.166","delete"); But for that to work, we have to change the Net/DNS/RR.php file. Only two small changes: ###[File: Net/DNS/RR.php: (Line 57) ]### function Net_DNS_RR($rrdata,$args="") { if (is_string($rrdata)) { $this = $this->new_from_string($rrdata,$args); } else if (count($rrdata) == 7) { ### END ### Add $args="" and pass the $args to new_from_string, since it allready takes $update_type = "" as parameter. -- Edit bug report at http://pear.php.net/bugs/bug.php?id=6899&edit=1 --

« previous php.pear.doc (#7598) next »