diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-10 21:52:36 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-10 21:52:36 +0200 |
commit | 4723bd4ffa098b85f39cf8ad3c92009819eb8b6f (patch) | |
tree | 3a5af88274450a4096d1310c000e934c3668214e | |
parent | a06eed0c0ec03bdbb0f97aede393b5c687041d88 (diff) | |
download | php-git-4723bd4ffa098b85f39cf8ad3c92009819eb8b6f.tar.gz |
Check the correct list
This was supposed to check mx_list, not weight_list... oops.
-rw-r--r-- | ext/standard/dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/dns.c b/ext/standard/dns.c index 56fb83eade..937c0ef392 100644 --- a/ext/standard/dns.c +++ b/ext/standard/dns.c @@ -1114,7 +1114,7 @@ PHP_FUNCTION(dns_get_mx) } } php_dns_free_handle(handle); - RETURN_BOOL(zend_hash_num_elements(Z_ARRVAL_P(weight_list)) != 0); + RETURN_BOOL(zend_hash_num_elements(Z_ARRVAL_P(mx_list)) != 0); } /* }}} */ #endif /* HAVE_FULL_DNS_FUNCS */ |