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

Bug #16503 Creating SOA RR from string doesn't work
Submitted: 2009-08-09 19:37 UTC
From: dmitrystolyarov Assigned: doconnor
Status: Closed Package: Net_DNS (version 1.0.1)
PHP Version: 5.2.10 OS: Gentoo Linux
Roadmaps: (Not assigned)    
Subscription  


 [2009-08-09 19:37 UTC] dmitrystolyarov (Dmitry Stolyarov)
Description: ------------ This problem is due to two SOA_RR's constructor errors: * ereg() function gets undefined variable $string as argument instead of real data stored in $data; * regular expression contains some errors. Patch is attached. Test script: --------------- $rr = Net_DNS_RR::factory('example.com. 3600 IN SOA ns.example.com. support.example.com. 8 3600 600 1209600 3600'); print_r($rr); Expected result: ---------------- Net_DNS_RR_SOA Object ( [name] => example.com [type] => SOA [class] => IN [ttl] => 3600 [rdlength] => 0 [rdata] => [mname] => ns.example.com [rname] => support.example.com [serial] => 8 [refresh] => 3600 [retry] => 600 [expire] => 1209600 [minimum] => 3600 ) Actual result: -------------- Net_DNS_RR_SOA Object ( [name] => example.com [type] => SOA [class] => IN [ttl] => 3600 [rdlength] => 0 [rdata] => [mname] => [rname] => [serial] => [refresh] => [retry] => [expire] => [minimum] => )

Comments

 [2009-08-09 19:37 UTC] dmitrystolyarov (Dmitry Stolyarov)
The following patch has been added/updated: Patch Name: soa-rr-from-string.patch Revision: 1249828658 URL: http://pear.php.net/bugs/patch-display.php?bug=16503&patch=soa-rr-from-string.patch&revision=1249828658&display=1
 [2009-08-09 19:37 UTC] dmitrystolyarov (Dmitry Stolyarov)
-PHP Version: 5.2.5 +PHP Version: 5.2.10
 [2010-02-22 03:40 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Verified
Added test coverage
 [2010-02-22 04:22 UTC] doconnor (Daniel O'Connor)
-Status: Verified +Status: Feedback
Patches applied in SVN
 [2010-04-13 12:07 UTC] doconnor (Daniel O'Connor)
-Status: Feedback +Status: Closed -Assigned To: +Assigned To: doconnor
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.