From: Anatol Belski Date: Wed, 27 Jul 2016 18:48:45 +0000 (+0200) Subject: Fixed bug #72683 getmxrr broken X-Git-Tag: php-7.0.10RC1~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c52322707e4224a5b3c16d53e9b59512d3a188e9;p=php Fixed bug #72683 getmxrr broken --- diff --git a/NEWS b/NEWS index 09a8211c86..b97aecf7fa 100644 --- a/NEWS +++ b/NEWS @@ -22,6 +22,7 @@ PHP NEWS (Yuji Uchiyama) . Fixed potential segfault in object storage freeing in shutdown sequence. (Bob) + . Fixed bug #72683 (getmxrr broken). (Anatol) - COM: . Fixed bug #72569 (DOTNET/COM array parameters broke in PHP7). (Anatol) diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c index c9c23415d9..f28977ab6a 100644 --- a/ext/standard/dns_win32.c +++ b/ext/standard/dns_win32.c @@ -50,7 +50,7 @@ PHP_FUNCTION(dns_get_mx) /* {{{ */ DNS_STATUS status; /* Return value of DnsQuery_A() function */ PDNS_RECORD pResult, pRec; /* Pointer to DNS_RECORD structure */ - if (zend_parse_parameters(ZEND_NUM_ARGS(), "sz|z", &hostname, &hostname_len, &mx_list, &weight_list) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS(), "sz/|z/", &hostname, &hostname_len, &mx_list, &weight_list) == FAILURE) { return; }