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

From: Date: Wed, 25 Aug 2010 08:26:10 +0000
Subject: Bug #17743 [Ver->Csd]: $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-4667@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: bate@php.net Reported By: mrubinsk at horde dot org Summary: $this used in statically called Net_DNS_Packet::dn_expand() -Status: Verified +Status: Closed Type: Bug Package: Net_DNS Operating System: linux Package Version: 1.0.5 PHP Version: 5.3.2 -Assigned To: +Assigned To: bate Roadmap Versions: New Comment: -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. Previous Comments: ------------------------------------------------------------------------ [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;. ------------------------------------------------------------------------ [2010-08-19 00:26:20] doconnor r302462 adds really basic unit tests which cover practically nothing ------------------------------------------------------------------------ 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 (#4667) next »