From: Pierre Joye Date: Wed, 7 Jan 2009 13:49:53 +0000 (+0000) Subject: - fix regression introduced by the move to the new parsing api (thx Bjori) X-Git-Tag: php-5.3.0beta1~254 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f70499923ea5766d712091390f8bf3eb6c8b74d;p=php - fix regression introduced by the move to the new parsing api (thx Bjori) --- diff --git a/ext/standard/dns.c b/ext/standard/dns.c index e5a73776ff..8397b8ae8a 100644 --- a/ext/standard/dns.c +++ b/ext/standard/dns.c @@ -681,6 +681,7 @@ PHP_FUNCTION(dns_get_record) if (addtl) { zval_dtor(addtl); array_init(addtl); + addtl_recs = 1; } if (type_param & ~PHP_DNS_ALL && type_param != PHP_DNS_ANY) { @@ -819,7 +820,7 @@ PHP_FUNCTION(dns_get_record) } } - if (addtl) { + if (addtl_recs && addtl) { /* Additional records associated with authoritative name servers */ while (ar-- > 0 && cp && cp < end) { zval *retval = NULL;