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

ID: 16503
Updated by: Dmitry.Stolyarov@gmail.com
Reported By: Dmitry dot Stolyarov at gmail dot com
Summary: Creating SOA RR from string doesn't work
Status: Open
Type: Bug
Package: Net_DNS
Operating System: Gentoo Linux
Package Version: 1.0.1
-PHP Version: 5.2.5
+PHP Version: 5.2.10
Roadmap Versions:
New Comment:

-PHP Version: 5.2.5
+PHP Version: 5.2.10



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

[2009-08-09 15:37:38] dmitrystolyarov

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 15:37:12] dmitrystolyarov

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] =>
)

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 9, '09 at 1:37p
activeAug 9, '09 at 1:37p
posts1
users1
websitepear.php.net

1 user in discussion

Dmitry Stolyarov: 1 post

People

Translate

site design / logo © 2022 Grokbase