php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #42215 dns_get_record not defined on Mac
Submitted: 2007-08-06 02:43 UTC Modified: 2007-08-08 13:37 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: developer-support at allknightaccess dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.2.4RC1 OS: Mac OS 10.4.10, Apache 2.2.4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: developer-support at allknightaccess dot com
New email:
PHP Version: OS:

 

 [2007-08-06 02:43 UTC] developer-support at allknightaccess dot com
Description:
------------
The function dns_get_record is not being defined on Mac OS 10.4.10.

Reproduce code:
---------------
<?php
$result = dns_get_record("php.net");
print_r($result);
?>

Expected result:
----------------
Array
(
    [0] => Array
        (
            [host] => php.net
            [type] => MX
            [pri] => 5
            [target] => pair2.php.net
            [class] => IN
            [ttl] => 6765
        )

    [1] => Array
        (
            [host] => php.net
            [type] => A
            [ip] => 64.246.30.37
            [class] => IN
            [ttl] => 8125
        )

)

Actual result:
--------------
Fatal error: Call to undefined function dns_get_record() 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-06 19:04 UTC] jani@php.net
Reclassified. This function is not available on *BSD systems. And IIRC, MacOSX is based on *BSD. Docs need to mention it though..
 [2007-08-08 13:37 UTC] philip@php.net
Duplicate of #42123:

http://bugs.php.net/bug.php?id=42123

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Sep 13 19:00:01 2025 UTC