For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > August 2007 > #42215 [Opn->Bgs]: dns_get_record not defined on Mac









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #42215 [Opn->Bgs]: dns_get_record not defined on Mac
philip@php.net

2007-08-08, 7:01 pm

ID: 42215
Updated by: philip@php.net
-Summary: dns_get_record not defined
Reported By: developer-support at allknightaccess dot com
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: Mac OS 10.4.10, apache 2.2.4
PHP Version: 5.2.4RC1
New Comment:

Duplicate of #42123:

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



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

[2007-08-06 19:04:24] 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-06 02:43:45] 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()


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


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







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com