summaryrefslogtreecommitdiff
path: root/ext/standard/dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/dns.c')
-rw-r--r--ext/standard/dns.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/standard/dns.c b/ext/standard/dns.c
index a85c5466cc..24c5d5c68d 100644
--- a/ext/standard/dns.c
+++ b/ext/standard/dns.c
@@ -655,7 +655,7 @@ static u_char *php_parserr(u_char *cp, querybuf *answer, int type_to_fetch, int
Get any Resource Record corresponding to a given Internet host name */
PHP_FUNCTION(dns_get_record)
{
- pval *addtl, *host, *authns, *fetch_type;
+ zval *addtl, *host, *authns, *fetch_type;
int addtl_recs = 0;
int type_to_fetch, type_param = PHP_DNS_ANY;
struct __res_state res;
@@ -684,10 +684,10 @@ PHP_FUNCTION(dns_get_record)
}
convert_to_long(fetch_type);
type_param = Z_LVAL_P(fetch_type);
- pval_destructor(authns);
+ zval_dtor(authns);
addtl_recs = 1; /* We want the additional Records */
array_init(authns);
- pval_destructor(addtl);
+ zval_dtor(addtl);
array_init(addtl);
break;
default:
@@ -845,7 +845,7 @@ PHP_FUNCTION(dns_get_record)
Get MX records corresponding to a given Internet host name */
PHP_FUNCTION(dns_get_mx)
{
- pval *host, *mx_list, *weight_list;
+ zval *host, *mx_list, *weight_list;
int need_weight = 0;
int count, qdc;
u_short type, weight;
@@ -867,7 +867,7 @@ PHP_FUNCTION(dns_get_mx)
WRONG_PARAM_COUNT;
}
need_weight = 1;
- pval_destructor(weight_list); /* start with clean array */
+ zval_dtor(weight_list); /* start with clean array */
array_init(weight_list);
break;
@@ -876,7 +876,7 @@ PHP_FUNCTION(dns_get_mx)
}
convert_to_string(host);
- pval_destructor(mx_list); /* start with clean array */
+ zval_dtor(mx_list); /* start with clean array */
array_init(mx_list);
/* Go! */