]> granicus.if.org Git - php/commitdiff
- Fixed bug: #22339
authorfoobar <sniper@php.net>
Fri, 21 Feb 2003 08:45:58 +0000 (08:45 +0000)
committerfoobar <sniper@php.net>
Fri, 21 Feb 2003 08:45:58 +0000 (08:45 +0000)
# No NEWS, this was bug introduced by Marcus a while ago..
# Not present in php4.3.x branch

ext/standard/basic_functions.c
ext/standard/dns.c
ext/standard/dns.h

index fed8e51b938c3c522bd2c2e6113a20c014f41f96..31c7f54e07e94a171e1d763312617d76caf10952 100644 (file)
@@ -598,10 +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)
+       PHP_FE(dns_get_mx,                              second_and_third_args_force_ref)
+       PHP_FALIAS(getmxrr,                     dns_get_mx, second_and_third_args_force_ref)
 # if HAVE_DNS_FUNCS
        PHP_FE(dns_get_record,                  third_and_rest_force_ref)
-       PHP_FE(dns_get_mx,                              second_and_third_args_force_ref)
-       PHP_FALIAS(getmxrr,                     dns_get_mx,                                                     NULL)
 # endif
 #endif
 
index 236b2471f3e3b9734ee5546098a1eec7d694ce29..e170a85e3c2ad190415d246cf7c823c7da32d1ff 100644 (file)
@@ -630,6 +630,7 @@ PHP_FUNCTION(dns_get_record)
        }
 }
 /* }}} */
+#endif /* HAVE_DNS_FUNCS */
 
 /* {{{ proto bool dns_get_mx(string hostname, array mxhosts [, array weight])
    Get MX records corresponding to a given Internet host name */
@@ -712,7 +713,6 @@ PHP_FUNCTION(dns_get_mx)
 }
 /* }}} */
 
-#endif /* HAVE_DNS_FUNCS */
 #endif /* HAVE_RES_SEARCH && !(defined(__BEOS__)||defined(PHP_WIN32) || defined(NETWARE)) */
 
 /*
index e9c917ee264127735f407ca6be2870dffce9de23..51519c85cafd6cea439ae51ee98aa01c31ff4c6f 100644 (file)
@@ -34,11 +34,11 @@ PHP_FUNCTION(gethostbynamel);
 #if HAVE_RES_SEARCH && !(defined(__BEOS__)||defined(PHP_WIN32))
 
 PHP_FUNCTION(dns_check_record);
+PHP_FUNCTION(dns_get_mx);
 
 # if HAVE_DNS_FUNCS
 
 PHP_FUNCTION(dns_get_record);
-PHP_FUNCTION(dns_get_mx);
 
 PHP_MINIT_FUNCTION(dns);