diff options
| author | foobar <sniper@php.net> | 2003-02-24 00:09:18 +0000 |
|---|---|---|
| committer | foobar <sniper@php.net> | 2003-02-24 00:09:18 +0000 |
| commit | c87c4c7bd778429588c0e1240f2c29468fc4a535 (patch) | |
| tree | 83003087c853c2e1115676ba86bd78ea7bcc2971 /ext/standard | |
| parent | 8c3cd0344d63af776acf231aff631a531d963e63 (diff) | |
| download | php-git-c87c4c7bd778429588c0e1240f2c29468fc4a535.tar.gz | |
Extra paranoia checks if dn_skipname/dn_expand exist or not
Diffstat (limited to 'ext/standard')
| -rw-r--r-- | ext/standard/basic_functions.c | 2 | ||||
| -rw-r--r-- | ext/standard/dns.c | 2 | ||||
| -rw-r--r-- | ext/standard/dns.h | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 31c7f54e07..76d27ece2f 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -598,8 +598,10 @@ function_entry basic_functions[] = { #if HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(PHP_WIN32) || defined(NETWARE)) PHP_FE(dns_check_record, NULL) PHP_FALIAS(checkdnsrr, dns_check_record, NULL) +# if HAVE_DN_SKIPNAME && HAVE_DN_EXPAND PHP_FE(dns_get_mx, second_and_third_args_force_ref) PHP_FALIAS(getmxrr, dns_get_mx, second_and_third_args_force_ref) +# endif # if HAVE_DNS_FUNCS PHP_FE(dns_get_record, third_and_rest_force_ref) # endif diff --git a/ext/standard/dns.c b/ext/standard/dns.c index e170a85e3c..d8799d863f 100644 --- a/ext/standard/dns.c +++ b/ext/standard/dns.c @@ -632,6 +632,7 @@ PHP_FUNCTION(dns_get_record) /* }}} */ #endif /* HAVE_DNS_FUNCS */ +#if HAVE_DN_SKIPNAME && HAVE_DN_EXPAND /* {{{ proto bool dns_get_mx(string hostname, array mxhosts [, array weight]) Get MX records corresponding to a given Internet host name */ PHP_FUNCTION(dns_get_mx) @@ -712,6 +713,7 @@ PHP_FUNCTION(dns_get_mx) RETURN_TRUE; } /* }}} */ +#endif /* HAVE_DN_SKIPNAME && HAVE_DN_EXPAND */ #endif /* HAVE_RES_SEARCH && !(defined(__BEOS__)||defined(PHP_WIN32) || defined(NETWARE)) */ diff --git a/ext/standard/dns.h b/ext/standard/dns.h index 51519c85ca..303d4705dc 100644 --- a/ext/standard/dns.h +++ b/ext/standard/dns.h @@ -34,7 +34,9 @@ PHP_FUNCTION(gethostbynamel); #if HAVE_RES_SEARCH && !(defined(__BEOS__)||defined(PHP_WIN32)) PHP_FUNCTION(dns_check_record); +# if HAVE_DN_SKIPNAME && HAVE_DN_EXPAND PHP_FUNCTION(dns_get_mx); +# endif # if HAVE_DNS_FUNCS |
