Bug #17743 [Csd->Opn]: $this used in statically called Net_DNS_Packet::dn_expand()

From: Date: Mon, 25 Oct 2010 22:44:57 +0000
Subject: Bug #17743 [Csd->Opn]: $this used in statically called Net_DNS_Packet::dn_expand()
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-4980@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=17743&edit=1 ID: 17743 Updated by: daniel.oconnor@gmail.com Reported By: mrubinsk at horde dot org Summary: $this used in statically called Net_DNS_Packet::dn_expand() -Status: Closed +Status: Open Type: Bug Package: Net_DNS Operating System: linux Package Version: 1.0.5 PHP Version: 5.3.2 Assigned To: bate Roadmap Versions: New Comment: -Status: Closed +Status: Open Previous Comments: ------------------------------------------------------------------------ [2010-08-25 08:26:10] bate -Status: Verified +Status: Closed -Assigned To: +Assigned To: bate This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. ------------------------------------------------------------------------ [2010-08-19 22:03:23] mrubinsk ...and of course, the require statement should be: + require_once "Net/DNS.php"; - require_once "Net/DNSBL.php"; ------------------------------------------------------------------------ [2010-08-19 21:56:53] mrubinsk Couldn't attach a *.php file to the bug for the test script, but it's simple enough: require_once "Net/DNSBL.php"; require_once "PHPUnit/Framework/TestCase.php"; /** */ class TestBug17743 extends PHPUnit_Framework_TestCase { public function testNonStaticContext() { $resolver = new Net_DNS_Resolver(); $host = '127.0.0.1'; if ($response = $resolver->query($host, 'PTR')) { foreach ($response->answer as $val) { if (isset($val->ptrdname)) { $ptrdname = $val->ptrdname; break; } } } } } ------------------------------------------------------------------------ [2010-08-19 00:28:03] doconnor -Status: Open +Status: Verified ------------------------------------------------------------------------ [2010-08-19 00:27:45] doconnor Added #patch bug:17743;patch:Packet.php;revision:1282177665;. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://pear.php.net/bugs/bug.php?id=17743 -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=17743&edit=1

« previous php.pear.bugs (#4980) next »