blob: 3a86dfbb59b343cd9c7a29f9ff54addac827b3e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- ext/standard/dns.c
+++ ext/standard/dns.c
@@ -275,6 +275,7 @@ PHP_FUNCTION(checkdnsrr)
#define MAXHOSTNAMELEN 256
#endif /* MAXHOSTNAMELEN */
+#if HAVE_DN_SKIPNAME
/* {{{ proto int getmxrr(string hostname, array mxhosts [, array weight])
Get MX records corresponding to a given Internet host name */
PHP_FUNCTION(getmxrr)
@@ -355,6 +356,7 @@ PHP_FUNCTION(getmxrr)
RETURN_TRUE;
}
/* }}} */
+#endif /* HAVE_DN_SKIPNAME */
#endif
/*
--- ext/standard/basic_functions.c
+++ ext/standard/basic_functions.c
@@ -449,7 +449,9 @@ function_entry basic_functions[] = {
#if HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(PHP_WIN32) || defined(NETWARE))
PHP_FE(checkdnsrr, NULL)
+# if HAVE_DN_SKIPNAME
PHP_FE(getmxrr,second_and_third_args_force_ref)
+# endif
#endif
PHP_FE(getmyuid, NULL)
|