mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
- [DOC] add support for all DNS function on Windows
- dns_check_record (and its alias checkdnsrr) - dns_get_record - IPV6 specific info not available yet: . AAAA info is available only on vista/2k8 for now . A6 info is not available - dns_get_mx (and its alias getmxrr)
This commit is contained in:
parent
72dad2c9a3
commit
7844cc3873
5 changed files with 485 additions and 54 deletions
|
@ -985,13 +985,13 @@ ZEND_BEGIN_ARG_INFO(arginfo_gethostname, 0)
|
|||
ZEND_END_ARG_INFO()
|
||||
#endif
|
||||
|
||||
#if HAVE_RES_SEARCH && !(defined(__BEOS__)||defined(PHP_WIN32) || defined(NETWARE))
|
||||
#if defined(PHP_WIN32) || (HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(NETWARE)))
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_dns_check_record, 0, 0, 1)
|
||||
ZEND_ARG_INFO(0, host)
|
||||
ZEND_ARG_INFO(0, type)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
# if HAVE_DNS_FUNCS
|
||||
# if defined(PHP_WIN32) || HAVE_DNS_FUNCS
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_dns_get_record, 1, 0, 1)
|
||||
ZEND_ARG_INFO(0, hostname)
|
||||
ZEND_ARG_INFO(0, type)
|
||||
|
@ -1000,14 +1000,15 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_dns_get_record, 1, 0, 1)
|
|||
ZEND_END_ARG_INFO()
|
||||
# endif
|
||||
|
||||
# if HAVE_DN_SKIPNAME && HAVE_DN_EXPAND
|
||||
# if defined(PHP_WIN32) || (HAVE_DN_SKIPNAME && HAVE_DN_EXPAND)
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_dns_get_mx, 0, 0, 2)
|
||||
ZEND_ARG_INFO(0, hostname)
|
||||
ZEND_ARG_INFO(1, mxhosts) /* ARRAY_INFO(1, mxhosts, 1) */
|
||||
ZEND_ARG_INFO(1, weight) /* ARRAY_INFO(1, weight, 1) */
|
||||
ZEND_END_ARG_INFO()
|
||||
# endif
|
||||
#endif /* HAVE_RES_SEARCH && !(defined(__BEOS__)||defined(PHP_WIN32) || defined(NETWARE)) */
|
||||
|
||||
#endif /* defined(PHP_WIN32) || (HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(NETWARE))) */
|
||||
/* }}} */
|
||||
/* {{{ exec.c */
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_exec, 0, 0, 1)
|
||||
|
@ -3015,14 +3016,17 @@ const zend_function_entry basic_functions[] = { /* {{{ */
|
|||
PHP_FE(gethostname, arginfo_gethostname)
|
||||
#endif
|
||||
|
||||
#if HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(PHP_WIN32) || defined(NETWARE))
|
||||
#if defined(PHP_WIN32) || (HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(NETWARE)))
|
||||
|
||||
PHP_FE(dns_check_record, arginfo_dns_check_record)
|
||||
PHP_FALIAS(checkdnsrr, dns_check_record, arginfo_dns_check_record)
|
||||
# if HAVE_DN_SKIPNAME && HAVE_DN_EXPAND
|
||||
|
||||
# if defined(PHP_WIN32) || (HAVE_DN_SKIPNAME && HAVE_DN_EXPAND)
|
||||
PHP_FE(dns_get_mx, arginfo_dns_get_mx)
|
||||
PHP_FALIAS(getmxrr, dns_get_mx, arginfo_dns_get_mx)
|
||||
PHP_FALIAS(getmxrr, dns_get_mx, arginfo_dns_get_mx)
|
||||
# endif
|
||||
# if HAVE_DNS_FUNCS
|
||||
|
||||
# if defined(PHP_WIN32) || HAVE_DNS_FUNCS
|
||||
PHP_FE(dns_get_record, arginfo_dns_get_record)
|
||||
# endif
|
||||
#endif
|
||||
|
@ -3619,8 +3623,8 @@ PHP_MINIT_FUNCTION(basic) /* {{{ */
|
|||
php_register_url_stream_wrapper("ftp", &php_stream_ftp_wrapper TSRMLS_CC);
|
||||
#endif
|
||||
|
||||
#if HAVE_RES_SEARCH && !(defined(__BEOS__)||defined(PHP_WIN32) || defined(NETWARE))
|
||||
# if HAVE_DNS_FUNCS
|
||||
#if defined(PHP_WIN32) || (HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(NETWARE)))
|
||||
# if defined(PHP_WIN32) || HAVE_DNS_FUNCS
|
||||
PHP_MINIT(dns)(INIT_FUNC_ARGS_PASSTHRU);
|
||||
# endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue