Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.7

Bug #12220 Cannot re-assign $this
Submitted: 2007-10-10 17:29 UTC
From: raspi Assigned:
Status: No Feedback Package: Net_DNS (version 1.0.0)
PHP Version: 5.2.3 OS: GNU/Linux
Roadmaps: (Not assigned)    
Subscription  


 [2007-10-10 17:29 UTC] raspi (Pekka Järvinen)
Description: ------------ Fatal error: Cannot re-assign $this in /usr/local/lib/php/Net/DNS/RR.php on line 60 Which is $this = $this->new_from_string($rrdata); Test script: --------------- <?php require_once 'Net/DNS.php'; $resolver = new Net_DNS_Resolver(); $response = $resolver->query('example.com'); if ($response) { foreach ($response->answer as $rr) { $rr->display(); } } ?> Expected result: ---------------- As statet in example: Output: example.com. 129808 IN A 192.0.34.166

Comments

 [2007-10-11 07:31 UTC] bate (Marco Kaiser)
Thank you for taking the time to report a problem with the package. Unfortunately you are not using a current version of the package -- the problem might already be fixed. Please download a new version from http://pear.php.net/packages.php If you are able to reproduce the bug with one of the latest versions, please change the package version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PEAR.
 [2008-03-23 09:19 UTC] doconnor (Daniel O'Connor)
Closing, no feedback. This problem is fixed in the current releases afaict