Bug #17743 [Asn->Csd]: $this used in statically called Net_DNS_Packet::dn_expand()
| From: | daniel dot oconnor at gmail dot com | Date: | Mon, 25 Oct 2010 23:07:46 +0000 |
| Subject: | Bug #17743 [Asn->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-4983@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: Assigned
+Status: Closed
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: Assigned
+Status: Closed
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-10-25 22:45:17] doconnor
Caused Bug #17995
------------------------------------------------------------------------
[2010-10-25 22:44:57] doconnor
-Status: Closed
+Status: Open
------------------------------------------------------------------------
[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;
}
}
}
}
}
------------------------------------------------------------------------
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