|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79944 getmxrr always returns true on Alpine linux
Submitted: 2020-08-07 23:29 UTC Modified: 2020-08-10 14:55 UTC
From: Assigned: nikic (profile)
Status: Closed Package: *Network Functions
PHP Version: 7.4.9 OS: Alpine 3.11
Private report: No CVE-ID: None
 [2020-08-07 23:29 UTC]
getmxrr() always returns true on alpine linux.

Recently the following bug was fixed thanks to this PR: and it was merged into the 7.4.9 release.

Our A, CNAME and MX record tests were failing before we upgraded to 7.4.9 today and now A and CNAME tests do pass correctly (they use checkdnsrr()), however MX test doesn't.

Test script:
var_dump(getmxrr('', $hosts));

Expected result:

Actual result:


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-08-08 14:06 UTC]
Linked PR is irrelevant to this bug report and can be ignored.
 [2020-08-10 14:55 UTC]
-Assigned To: +Assigned To: nikic
 [2020-08-10 18:43 UTC]
Automatic comment on behalf of
Log: Fix bug #79944
 [2020-08-10 18:43 UTC]
-Status: Assigned +Status: Closed
 [2020-08-20 01:42 UTC] apostnikov at gmail dot com
Confirm, it returns always TRUE even when hostname is wrong
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 14:01:31 2024 UTC