From: Pierre Joye Date: Tue, 6 Jan 2009 23:23:28 +0000 (+0000) Subject: - [DOC] VC6 does not have NAPTR X-Git-Tag: php-5.3.0beta1~261 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=789367bd7eb732a07ed2196a26cc6afd6ce64dc0;p=php - [DOC] VC6 does not have NAPTR --- diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c index b95357c0c1..289f20d399 100644 --- a/ext/standard/dns_win32.c +++ b/ext/standard/dns_win32.c @@ -93,7 +93,7 @@ PHP_FUNCTION(dns_check_record) int type = DNS_TYPE_MX; DNS_STATUS status; /* Return value of DnsQuery_A() function */ - PDNS_RECORD pResult, pRec; /* Pointer to DNS_RECORD structure */ + PDNS_RECORD pResult; /* Pointer to DNS_RECORD structure */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &hostname, &hostname_len, &rectype, &rectype_len) == FAILURE) { return; @@ -260,7 +260,9 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, zval **s case DNS_TYPE_NAPTR: { +#ifdef DNS_NAPTR_DATA DNS_NAPTR_DATA * data_naptr = &pRec->Data.Naptr; + add_assoc_string(*subarray, "type", "NAPTR", 1); add_assoc_long(*subarray, "order", data_naptr->wOrder); add_assoc_long(*subarray, "pref", data_naptr->wPreference); @@ -268,6 +270,7 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, zval **s add_assoc_string(*subarray, "services", data_naptr->pService, 1); add_assoc_string(*subarray, "regex", data_naptr->pRegularExpression, 1); add_assoc_string(*subarray, "replacement", data_naptr->pReplacement, 1); +#endif } break;