Edit report at http://pear.php.net/bugs/bug.php?id=16516&edit=1
ID: 16516
Updated by: daniel.oconnor@gmail.com
Reported By: Dmitry dot Stolyarov at trueoffice dot ru
Summary: Saving TXT RR in the binary format doesn't work
correctly
-Status: Open
+Status: Feedback
Type: Bug
Package: Net_DNS
Operating System: Gentoo Linux
Package Version: 1.0.1
PHP Version: 5.2.10
Roadmap Versions:
New Comment:
-Status: Open
+Status: Feedback
Previous Comments:
------------------------------------------------------------------------
[2010-02-21 22:48:33] doconnor
Added test coverage in SVN.
Can you check r295332 to ensure I've got the right binary encoding?
------------------------------------------------------------------------
[2009-08-12 00:30:34] dmitrystolyarov
-PHP Version: 5.2.5
+PHP Version: 5.2.10
------------------------------------------------------------------------
[2009-08-12 00:26:43] dmitrystolyarov
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 00:26:17] dmitrystolyarov
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
------------------------------------------------------------------------