PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_DNS » Bug #8321

fatal error Cannot re-assign $this in /usr/share/php/Net/DNS/RR.php on line 60

Details

Submitted2006-07-30 02:44 UTC
Fromsiegfri3d at gmail dot com
Assignedbate
StatusClosed
PackageNet_DNS
PHP Version5.1.4
OSDebian AND fedora
Roadmaps(Not assigned)

Comments

[2006-07-30 02:44 UTC] siegfri3d at gmail dot com

Description:
------------
i got this error when using the test script of your documentation to make an axfr request:

Fatal error: Cannot re-assign $this in /usr/share/php/Net/DNS/RR.php on line 60

i tried on debian unstable and fedora core 5 both with php 5.1.4

Test script:
---------------
the script i got in the documentation to make an axfr query:

require_once 'Net/DNS.php';

$resolver = new Net_DNS_Resolver();
$resolver->debug = 1;
$response = $resolver->axfr($_GET['host']);
print_r($response);
if (count($response) == 0) {
echo "\n";
echo "AXFR Failed\n";
}

Expected result:
----------------
that it works ;p

Actual result:
--------------
Fatal error: Cannot re-assign $this in /usr/share/php/Net/DNS/RR.php on line 60