summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-07-27 20:48:45 +0200
committerAnatol Belski <ab@php.net>2016-07-27 20:48:45 +0200
commitc52322707e4224a5b3c16d53e9b59512d3a188e9 (patch)
treec45b3bc6e336ced7fcfe0d098c291d6204a26494
parent6e8b2d21d180870f07e5478f291c4fb0ff0aecbe (diff)
downloadphp-git-c52322707e4224a5b3c16d53e9b59512d3a188e9.tar.gz
Fixed bug #72683 getmxrr broken
-rw-r--r--NEWS1
-rw-r--r--ext/standard/dns_win32.c2
2 files changed, 2 insertions, 1 deletions
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;
}