cvs: peardoc /en/package/networking net-dns.xml
| From: | Brett Bieber | Date: | Fri, 21 Mar 2008 15:43:04 +0000 |
| Subject: | cvs: peardoc /en/package/networking net-dns.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-10582@lists.php.net to get a copy of this message | ||
saltybeagle Fri Mar 21 15:43:04 2008 UTC
Modified files:
/peardoc/en/package/networking net-dns.xml
Log:
Update examples to use the factory method. Doc Bug #13082 outdated manual example
http://cvs.php.net/viewvc.cgi/peardoc/en/package/networking/net-dns.xml?r1=1.7&r2=1.8&diff_format=u
Index: peardoc/en/package/networking/net-dns.xml
diff -u peardoc/en/package/networking/net-dns.xml:1.7 peardoc/en/package/networking/net-dns.xml:1.8
--- peardoc/en/package/networking/net-dns.xml:1.7 Tue Apr 12 02:36:49 2005
+++ peardoc/en/package/networking/net-dns.xml Fri Mar 21 15:43:04 2008
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<sect1 id="package.networking.net-dns">
<title>Net_DNS</title>
<para>
@@ -504,13 +504,13 @@
// The following specification will delete the RR that has a name of
// "example.com", class of "IN", type of "A", and an address of
// "192.0.34.166".
-$rrDelete = new Net_DNS_RR("example.com. 0 IN A 192.0.34.166");
+$rrDelete =& Net_DNS_RR::factory("example.com. 0 IN A 192.0.34.166");
//
// The following specification will add an RR that has a name of example.com,
// a TTL of 1 hour, a class of "IN", type of "A", and an address of
// "192.0.34.155"). Note that the only difference between this RR and the
// previous RR is the value of the TTL.
-$rrAdd = new Net_DNS_RR("example.com. 3600 IN A 192.0.34.166");
+$rrAdd =& Net_DNS_RR::factory("example.com. 3600 IN A 192.0.34.166");
//
// The RR modifications are added to the authority (UPDATE) section of the DNS
// packet.
@@ -520,7 +520,7 @@
// The signature must be present in any packet sent to a nameserver that
// requires authentication. The TSIG RR is added to the additional section of
// the DNS packet.
-$tsig = new Net_DNS_RR("keyname.as.specified.in.server. TSIG ThisIsMyKey");
+$tsig =& Net_DNS_RR::factory("keyname.as.specified.in.server. TSIG ThisIsMyKey");
$packet->additional = array($tsig);
// Net_DNS does not automatically calculate the number of records stored in
// each section. This calculation must be done manually.