]> granicus.if.org Git - php/commitdiff
- fix regression introduced by the move to the new parsing api (thx Bjori)
authorPierre Joye <pajoye@php.net>
Wed, 7 Jan 2009 13:49:53 +0000 (13:49 +0000)
committerPierre Joye <pajoye@php.net>
Wed, 7 Jan 2009 13:49:53 +0000 (13:49 +0000)
ext/standard/dns.c

index e5a73776ff609a6fc8379656abed844abb2c5a7b..8397b8ae8ace210477d466fbdc8097fbf86eda7e 100644 (file)
@@ -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;