FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=16516&edit=1

ID: 16516
Updated by: bate@php.net
Reported By: Dmitry dot Stolyarov at trueoffice dot ru
Summary: Saving TXT RR in the binary format doesn't work
correctly
-Status: Feedback
+Status: No 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: Feedback
+Status: No Feedback



Previous Comments:
------------------------------------------------------------------------

[2010-03-18 19:45:44] dmitrystolyarov

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

------------------------------------------------------------------------

[2010-02-21 22:48:45] doconnor

-Status: Open
+Status: Feedback


------------------------------------------------------------------------

[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

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=16516

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 11, '12 at 8:57p
activeAug 11, '12 at 8:57p
posts1
users1
websitepear.php.net

1 user in discussion

Bate: 1 post

People

Translate

site design / logo © 2022 Grokbase