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 #4734

this assignment within the constructor

Details

Submitted2005-07-03 13:59 UTC
Frompascal at meeuws dot org
Assignedbate
StatusNo Feedback
PackageNet_DNS
PHP Version5.0.1
OSLinux
Roadmaps(Not assigned)

Comments

[2005-07-03 13:59 UTC] pascal at meeuws dot org

Description:
------------
Reproduction: Use the example as given within the
documentation.
Latest version of the Net/DNS/RR.php will produce the
following error.

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

Reproduce code:
---------------
See example code within the documentation of the DNS package

[2005-11-05 12:27 UTC] julio2603 at yahoo dot fr

I have exactly the same problem
Version 0.03
Release Date 2002-08-15

Do you resolve the problem?

[2005-11-15 14:36 UTC] regyen at yahoo dot com dot tw

You're using PHP5 and you cannot reassign $this in PHP5. That package
doesn't work with PHP5 that way. Try doing a new class() on the actual
end class you need instead of the "normal" one. Sorry, can't give you
more right now.

find in
http://www.codecomments.com/archive218-2004-11-311716.html

[2006-01-11 00:47 UTC] ca368604 at tiscali dot cz

I use Net_DNS 0.03.