cvs: php-src(PHP_5_3) /ext/standard dns.c

From: Date: Wed, 07 Jan 2009 13:49:53 +0000
Subject: cvs: php-src(PHP_5_3) /ext/standard dns.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-55406@lists.php.net to get a copy of this message
pajoye Wed Jan 7 13:49:53 2009 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/standard dns.c Log: - fix regression introduced by the move to the new parsing api (thx Bjori) http://cvs.php.net/viewvc.cgi/php-src/ext/standard/dns.c?r1=1.70.2.7.2.5.2.15&r2=1.70.2.7.2.5.2.16&diff_format=u Index: php-src/ext/standard/dns.c diff -u php-src/ext/standard/dns.c:1.70.2.7.2.5.2.15 php-src/ext/standard/dns.c:1.70.2.7.2.5.2.16 --- php-src/ext/standard/dns.c:1.70.2.7.2.5.2.15 Wed Jan 7 13:46:13 2009 +++ php-src/ext/standard/dns.c Wed Jan 7 13:49:53 2009 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dns.c,v 1.70.2.7.2.5.2.15 2009/01/07 13:46:13 pajoye Exp $ */ +/* $Id: dns.c,v 1.70.2.7.2.5.2.16 2009/01/07 13:49:53 pajoye Exp $ */ /* {{{ includes */ #include "php.h" @@ -681,6 +681,7 @@ 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 @@ } } - if (addtl) { + if (addtl_recs && addtl) { /* Additional records associated with authoritative name servers */ while (ar-- > 0 && cp && cp < end) { zval *retval = NULL;

« previous php.cvs (#55406) next »