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

Bug #16516 Saving TXT RR in the binary format doesn't work correctly
Submitted: 2009-08-12 04:26 UTC
From: dmitrystolyarov Assigned:
Status: No Feedback Package: Net_DNS (version 1.0.1)
PHP Version: 5.2.10 OS: Gentoo Linux
Roadmaps: (Not assigned)    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 42 - 5 = ?

 
 [2009-08-12 04:26 UTC] dmitrystolyarov (Dmitry Stolyarov)
Description: ------------ Patch tested against ISC BIND (9.4.2 & 9.4.3) attached. Test script: --------------- $r = new Net_DNS_Resolver(); $txt_rr = reset($r->query('example.com.', 'TXT')->answer); echo $txt_rr->string() . "\n"; echo $txt_rr->rr_rdata(0, 0) . "\n"; Expected result: ---------------- example.com. 3600 IN TXT "x" "y" "z" xyz Actual result: -------------- example.com. 3600 IN TXT "x" "y" "z" Array

Comments

 [2009-08-12 04:26 UTC] dmitrystolyarov (Dmitry Stolyarov)
The following patch has been added/updated: Patch Name: txt-to-binary.patch Revision: 1250033202 URL: http://pear.php.net/bugs/patch-display.php?bug=16516&patch=txt-to-binary.patch&revision=1250033202&display=1
 [2009-08-12 04:30 UTC] dmitrystolyarov (Dmitry Stolyarov)
-PHP Version: 5.2.5 +PHP Version: 5.2.10
 [2010-02-22 03:48 UTC] doconnor (Daniel O'Connor)
Added test coverage in SVN. Can you check r295332 to ensure I've got the right binary encoding?
 [2010-02-22 03:48 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Feedback
 [2010-03-18 23:45 UTC] dmitrystolyarov (Dmitry Stolyarov)
Test script: --------------- $r = new Net_DNS_Resolver(); $txt_rr = reset($r->query('example.com.', 'TXT')->answer); echo $txt_rr->string() . "\n"; echo $txt_rr->rr_rdata(0, 0) . "\n"; echo base64_encode($txt_rr->rr_rdata(0, 0)) . "\n"; Expected result: ---------------- example.com. 3600 IN TXT "x" "y" "z" xyz AXgBeQF6 Actual result: -------------- example.com. 3600 IN TXT "x" "y" "z" Array BUFycmF5
 [2012-08-12 03:04 UTC] bate (Marco Kaiser)
-Status: Feedback +Status: No Feedback