#42215 [Opn->Bgs]: dns_get_record not defined on Mac

From: Date: Wed, 08 Aug 2007 13:37:53 +0000
Subject: #42215 [Opn->Bgs]: dns_get_record not defined on Mac
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969377274@lists.php.net to get a copy of this message
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

« previous php.doc (#969377274) next »