com php-src: Merge branch 'PHP-7.4': ext/standard/dns.c

From: Date: Wed, 15 Jul 2020 13:10:50 +0000
Subject: com php-src: Merge branch 'PHP-7.4': ext/standard/dns.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-112176@lists.php.net to get a copy of this message
Commit: 1c0ee68b830554fd381c72a74d3276095a69945c Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 15 Jul 2020 15:10:50 +0200 Parents: 5785a15f4e9ef3db4ba6c166a2f2a45900d98a14 2053329b1a04cfb2b503f3ea9b19d2fdd900987e Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1c0ee68b830554fd381c72a74d3276095a69945c Log: Merge branch 'PHP-7.4' * PHP-7.4: Fix bug #78008: dns_check_record() always return true on Alpine Bugs: https://bugs.php.net/78008 Changed paths: MM ext/standard/dns.c Diff: diff --cc ext/standard/dns.c index f77735ed72,3c9ce269c4..625c778d5b --- a/ext/standard/dns.c +++ b/ext/standard/dns.c @@@ -350,13 -358,12 +350,11 @@@ static void _php_dns_free_res(struct __ #define php_dns_free_res(__res__) #endif -/* {{{ proto bool dns_check_record(string host [, string type]) - Check DNS records corresponding to a given Internet host name or IP address */ +/* {{{ Check DNS records corresponding to a given Internet host name or IP address */ PHP_FUNCTION(dns_check_record) { - #ifndef MAXPACKET - #define MAXPACKET 8192 /* max packet size used internally by BIND */ - #endif - u_char ans[MAXPACKET]; + HEADER *hp; + querybuf answer; char *hostname, *rectype = NULL; size_t hostname_len, rectype_len = 0; int type = DNS_T_MX, i;

« previous php.cvs (#112176) next »