summaryrefslogtreecommitdiff
path: root/ext/standard/dns_win32.c
diff options
context:
space:
mode:
authorGustavo André dos Santos Lopes <cataphract@php.net>2010-10-11 03:07:03 +0000
committerGustavo André dos Santos Lopes <cataphract@php.net>2010-10-11 03:07:03 +0000
commit17dc181117fd302ef196a959add39f38152a770e (patch)
tree2659d2dcb448d7ef0702c0a0239a11ad11648f47 /ext/standard/dns_win32.c
parent91f64706c2579764e23664812897ca2a466d7218 (diff)
downloadphp-git-17dc181117fd302ef196a959add39f38152a770e.tar.gz
- Removed redundant local variable in dns_get_record.
- (5.3) Fixed bug in the Windows implementation of dns_get_record, where the two last parameters wouldn't be filled unless the type were DNS_ANY (Gustavo).
Diffstat (limited to 'ext/standard/dns_win32.c')
-rw-r--r--ext/standard/dns_win32.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c
index ba1c5a1abf..7bded1cdaf 100644
--- a/ext/standard/dns_win32.c
+++ b/ext/standard/dns_win32.c
@@ -347,7 +347,6 @@ PHP_FUNCTION(dns_get_record)
long type_param = PHP_DNS_ANY;
zval *authns = NULL, *addtl = NULL;
int type, type_to_fetch, first_query = 1, store_results = 1;
- int addtl_recs = 0;
zend_bool raw = 0;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lz!z!b",
@@ -362,7 +361,6 @@ PHP_FUNCTION(dns_get_record)
if (addtl) {
zval_dtor(addtl);
array_init(addtl);
- addtl_recs = 1;
}
if (!raw) {
@@ -390,7 +388,7 @@ PHP_FUNCTION(dns_get_record)
}
for ( ;
- type < (addtl_recs ? (PHP_DNS_NUM_TYPES + 2) : PHP_DNS_NUM_TYPES) || first_query;
+ type < (addtl ? (PHP_DNS_NUM_TYPES + 2) : PHP_DNS_NUM_TYPES) || first_query;
type++
) {
DNS_STATUS status; /* Return value of DnsQuery_A() function */