summaryrefslogtreecommitdiff
path: root/ext/standard/dns.h
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-11-19 02:34:13 +0000
committerMarcus Boerger <helly@php.net>2002-11-19 02:34:13 +0000
commit3ca6344e57de58719554f45fc5889ded774b265c (patch)
tree589d51ab0082ce93cea271880e31b956dcc66609 /ext/standard/dns.h
parentbfae20f404f73bddcb9a0e44e20fa1873e858c13 (diff)
downloadphp-git-3ca6344e57de58719554f45fc5889ded774b265c.tar.gz
-rename checkdnsrr to dns_check_record, keep old name as alias
-rename getmxrr to dns_get_mx, keep old name as alias -added dns_get_record @Added dns_get_record() which allows to retrieve DNS information about @a host. (Marcus, Pollita)
Diffstat (limited to 'ext/standard/dns.h')
-rw-r--r--ext/standard/dns.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/ext/standard/dns.h b/ext/standard/dns.h
index e3f1cc461a..3d6ce8d70e 100644
--- a/ext/standard/dns.h
+++ b/ext/standard/dns.h
@@ -12,7 +12,9 @@
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
- | Author: |
+ | Authors: The typical suspects |
+ | Marcus Boerger <helly@php.net> |
+ | Pollita <pollita@php.net> |
+----------------------------------------------------------------------+
*/
@@ -21,13 +23,26 @@
#ifndef DNS_H
#define DNS_H
+#if HAVE_RES_NMKQUERY & HAVE_RES_NSEND & HAVE_DN_EXPAND & HAVE_DN_SKIPNAME
+#define HAVE_DNS_FUNCS 1
+#endif
+
PHP_FUNCTION(gethostbyaddr);
PHP_FUNCTION(gethostbyname);
PHP_FUNCTION(gethostbynamel);
#if HAVE_RES_SEARCH && !(defined(__BEOS__)||defined(PHP_WIN32))
-PHP_FUNCTION(checkdnsrr);
-PHP_FUNCTION(getmxrr);
+
+PHP_FUNCTION(dns_check_record);
+
+# if HAVE_DNS_FUNCS
+
+PHP_FUNCTION(dns_get_record);
+PHP_FUNCTION(dns_get_mx);
+
+PHP_MINIT_FUNCTION(dns);
+
+# endif
#endif
#ifndef INT16SZ