Merge branch 'PHP-7.4'

* PHP-7.4:
  Check the correct list
This commit is contained in:
Nikita Popov 2020-08-10 21:53:26 +02:00
commit 7e87173497

View File

@ -1124,7 +1124,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 */