ID:               49183
 Updated by:       paj...@php.net
 Reported By:      sunnyseh at hotmail dot com
-Status:           Assigned
+Status:           Closed
 Bug Type:         Network related
 Operating System: windows
 PHP Version:      5.3.0
 Assigned To:      pajoye
 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Next windows snapshot will have the fix.


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

[2009-08-07 13:31:10] s...@php.net

Automatic comment from SVN on behalf of pajoye
Revision: http://svn.php.net/viewvc/?view=revision&revision=286907
Log: - Fixed #49183, dns_get_record does not return NAPTR records

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

[2009-08-07 13:08:34] sunnyseh at hotmail dot com

thanks - your a superstar!

any chance I could get the code before then?  had a project I wanted to
work on over the weekend :)

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

[2009-08-07 12:02:49] paj...@php.net

Found the problem and have the fix already, I will commit it when I'm
back from holidays on Monday.

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

[2009-08-07 10:00:24] sunnyseh at hotmail dot com

here you go...

output from:  print_r(dns_get_record('ben.tel', DNS_ALL));

Array ( [0] => Array ( [host] => ben.tel [type] => A [ip] =>
194.77.54.2 [class] => IN [ttl] => 86400 ) [1] => Array ( [host] =>
ben.tel [type] => NS [target] => a0.cth.dns.nic.tel [class] => IN [ttl]
=> 3600 ) [2] => Array ( [host] => ben.tel [type] => NS [target] =>
d0.cth.dns.nic.tel [class] => IN [ttl] => 3600 ) [3] => Array ( [host]
=> ben.tel [type] => NS [target] => n0.cth.dns.nic.tel [class] => IN
[ttl] => 3600 ) [4] => Array ( [host] => ben.tel [type] => NS [target]
=> s0.cth.dns.nic.tel [class] => IN [ttl] => 3600 ) [5] => Array (
[host] => ben.tel [type] => NS [target] => t0.cth.dns.nic.tel [class] =>
IN [ttl] => 3600 ) [6] => Array ( [host] => ben.tel [type] => TXT [txt]
=> .tsm1pddx1 [entries] => Array ( [0] => .tsm [1] => 1 [2] => pddx [3]
=> 1 ) [class] => IN [ttl] => 60 ) [7] => Array ( [host] => ben.tel
[type] => TXT [txt] => Welcome to .tel, the new way to communicate! You
can't have Laura's telephone number, but more information is available
about her and the movie below. ;)) [entries] => Array ( [0] => Welcome
to .tel, the new way to communicate! You can't have Laura's telephone
number, but more information is available about her and the movie below.
;)) ) [class] => IN [ttl] => 60 ) [8] => Array ( [host] => ben.tel
[class] => IN [ttl] => 60 ) [9] => Array ( [host] => ben.tel [class] =>
IN [ttl] => 60 ) [10] => Array ( [host] => ben.tel [class] => IN [ttl]
=> 60 ) [11] => Array ( [host] => ben.tel [class] => IN [ttl] => 60 ) )


and if you actually browse to ben.tel you'll see the following
additional records:
Web (Buy YOUR dottel here) 
telnic.org/business-buy.html Go to 
More About The Movie Web (Learn more) 
www.telnic.org Work Email 
commun...@telnic.org 

These are all naptr records stored in the dns of ben.tel.  

Let me know if you need further info.

Thanks for looking at this so quickly :)

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

[2009-08-07 09:44:21] j...@php.net

This short thing returns quite a long list:

# php -r 'var_dump(dns_get_record("ben.tel", DNS_NAPTR));'

Not sure what you actually expected it to return since you didn't
mention that. Your bug report is a bit buggy..

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

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://bugs.php.net/49183

-- 
Edit this bug report at http://bugs.php.net/?id=49183&edit=1

Reply via email to